mirror of https://github.com/vector-im/riot-web
Stop FF quantum exploding on CSS edits
parent
c644e7d673
commit
b58514f427
|
@ -279,8 +279,16 @@ class Tinter {
|
||||||
" fixups)");
|
" fixups)");
|
||||||
for (let i = 0; i < this.cssFixups[this.theme].length; i++) {
|
for (let i = 0; i < this.cssFixups[this.theme].length; i++) {
|
||||||
const cssFixup = this.cssFixups[this.theme][i];
|
const cssFixup = this.cssFixups[this.theme][i];
|
||||||
|
try {
|
||||||
cssFixup.style[cssFixup.attr] = this.colors[cssFixup.index];
|
cssFixup.style[cssFixup.attr] = this.colors[cssFixup.index];
|
||||||
}
|
}
|
||||||
|
catch (e) {
|
||||||
|
// Firefox Quantum explodes if you manually edit the CSS in the
|
||||||
|
// inspector and then try to do a tint, as apparently all the
|
||||||
|
// fixups are then stale.
|
||||||
|
console.error("Failed to apply cssFixup in Tinter! ", e.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (DEBUG) console.log("applyCssFixups end");
|
if (DEBUG) console.log("applyCssFixups end");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue