pull/21833/head
Bruno Windels 2020-06-23 17:54:57 +02:00
parent 2f6fc6bba2
commit 3b13a623cd
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ export async function setTheme(theme) {
if (a == styleElements[stylesheetName]) return;
a.disabled = true;
});
const bodyStyles = global.getComputedStyle(document.getElementsByTagName("body")[0]);
const bodyStyles = global.getComputedStyle(document.body);
if (bodyStyles.backgroundColor) {
document.querySelector('meta[name="theme-color"]').content = bodyStyles.backgroundColor;
}