diff --git a/package.json b/package.json index 21d760a..32301a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logseq-graph-analysis", - "version": "0.11.2", + "version": "0.11.3", "type": "module", "main": "./dist/index.html", "license": "GPL", diff --git a/src/settings/themes.ts b/src/settings/themes.ts index f76e44a..1ab84dc 100644 --- a/src/settings/themes.ts +++ b/src/settings/themes.ts @@ -27,7 +27,7 @@ const darkTheme: Theme = { }; export const setThemeColors = () => { - const root = parent.document.querySelector(":root"); + const root = parent.document.querySelector("#root"); if (root) { const rootStyles = getComputedStyle(root); document.body.style.setProperty("--theme-background", rootStyles.getPropertyValue("--ls-primary-background-color") || "#ffffff");