Skip to content

Commit 9eba0f6

Browse files
authored
Fix theme-color meta tag not syncing with the theme
1 parent 904aa53 commit 9eba0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/book.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function playground_text(playground, hidden = true) {
346346
}
347347

348348
setTimeout(function () {
349-
themeColorMetaTag.content = getComputedStyle(document.body).backgroundColor;
349+
themeColorMetaTag.content = getComputedStyle(document.documentElement).backgroundColor;
350350
}, 1);
351351

352352
if (window.ace && window.editors) {

0 commit comments

Comments
 (0)