mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
2f0d3f1313
@ -313,7 +313,11 @@ async function loadApp() {
|
||||
if (match) {
|
||||
if (match[1] === theme) {
|
||||
// remove the disabled flag off the stylesheet
|
||||
a.removeAttribute("disabled");
|
||||
|
||||
// Firefox requires setting the attribute to false, so do
|
||||
// that instead of removing it. Related:
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1281135
|
||||
a.disabled = false;
|
||||
|
||||
// in case the Tinter.tint() in MatrixChat fires before the
|
||||
// CSS has actually loaded (which in practice happens)...
|
||||
@ -324,6 +328,11 @@ async function loadApp() {
|
||||
a.onload = () => {
|
||||
Tinter.setTheme(theme);
|
||||
};
|
||||
} else {
|
||||
// Firefox requires this to not be done via `setAttribute`
|
||||
// or via HTML.
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1281135
|
||||
a.disabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user