From c74a56de6fe79403805164ffcca2736a994ce00c Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sat, 14 Sep 2024 12:33:03 +0800 Subject: [PATCH] fix: adjust conditions for skipping `startShadowDOMStyleInjection()` --- src/contentScripts/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 84370e21..4e42ab5d 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -213,7 +213,9 @@ function injectApp() { } function startShadowDOMStyleInjection() { - if (isHomePage() && !isSupportedPages()) + if (isHomePage()) + return + if (!isSupportedPages()) return // Create a MutationObserver to watch for Shadow DOM additions