From 9eba0f6ab2c41daca5c57f9b8f727741602e9212 Mon Sep 17 00:00:00 2001 From: zica <59327276+zica87@users.noreply.github.com> Date: Sun, 9 Jul 2023 08:57:46 +0800 Subject: [PATCH] Fix theme-color meta tag not syncing with the theme --- src/theme/book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/book.js b/src/theme/book.js index 67a8a5b0..351e28c7 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -346,7 +346,7 @@ function playground_text(playground, hidden = true) { } setTimeout(function () { - themeColorMetaTag.content = getComputedStyle(document.body).backgroundColor; + themeColorMetaTag.content = getComputedStyle(document.documentElement).backgroundColor; }, 1); if (window.ace && window.editors) {