jarek-foksa/xel

HTML Imports was deprecated

nom3ad opened this issue · 2 comments

Chrome and chromium based browsers are dropping support for html imports.

reference: https://www.chromestatus.com/feature/5144752345317376

HTML Imports are deprecated at M70, and will be removed in M73, around, April 2019.

And follwing check for supported browser going to fail.

xel/index.html

Lines 36 to 48 in 1b67933

<script>
// Supported browser
if (window.ShadowRoot && window.customElements && HTMLLinkElement.prototype.hasOwnProperty("import")) {
let theme = sessionStorage.getItem("theme") || "material";
let themePath = `/node_modules/xel/themes/${theme}.css`;
document.querySelector("#theme-link").setAttribute("href", themePath);
window.addEventListener("load", function(event) {window["splashscreen"].remove()});
}
// Unsupported browser
else {
window.location.replace("/fallback.html");
}
</script>

Hey, Thanks for the quick fix.
finally, I was able to xel run on Firefox.
A lot of bugs though. But many components work properly with the vanilla theme.

I'm afraid Xel is unlikely to support Firefox anytime soon. Proper support would require adding a lot of special casing which I would prefer to avoid.