mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
cleanup
This commit is contained in:
parent
2f6fc6bba2
commit
3b13a623cd
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ export async function setTheme(theme) {
|
||||||
if (a == styleElements[stylesheetName]) return;
|
if (a == styleElements[stylesheetName]) return;
|
||||||
a.disabled = true;
|
a.disabled = true;
|
||||||
});
|
});
|
||||||
const bodyStyles = global.getComputedStyle(document.getElementsByTagName("body")[0]);
|
const bodyStyles = global.getComputedStyle(document.body);
|
||||||
if (bodyStyles.backgroundColor) {
|
if (bodyStyles.backgroundColor) {
|
||||||
document.querySelector('meta[name="theme-color"]').content = bodyStyles.backgroundColor;
|
document.querySelector('meta[name="theme-color"]').content = bodyStyles.backgroundColor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue