From c057bbaa09a56d64d95855ec7ff81b45aa976479 Mon Sep 17 00:00:00 2001 From: Mauve Signweaver Date: Tue, 23 Apr 2024 13:40:15 -0400 Subject: [PATCH] No CSS inject on pages with inline style --- app/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/window.js b/app/window.js index a6f38c5..fe6b436 100644 --- a/app/window.js +++ b/app/window.js @@ -34,7 +34,7 @@ const DEFAULT_SAVE_INTERVAL = 30 * 1000 const HAS_SHEET = ` [...document.styleSheets].filter((sheet) => { try {sheet.cssRules; return true} catch {return false} -}).length +}).length || !!document.querySelector('[style]') ` const WINDOW_METHODS = [