Skip to content

Commit 9911e86

Browse files
authored
Merge pull request #2118 from zica87/zica87-patch-1
Fix theme-color meta tag not syncing with the theme
2 parents 904aa53 + 9eba0f6 commit 9911e86

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)