From 9f4e595c7264a52ab85eb07c4d1411e4efb09ab1 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:03:17 -0400 Subject: Fix settings display when shadow is on auto and body is light or dark (#1089) --- ext/js/display/display.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/js/display') diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 33ab44e4..6b3838e5 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -33,6 +33,7 @@ import {ScrollElement} from '../dom/scroll-element.js'; import {TextSourceGenerator} from '../dom/text-source-generator.js'; import {HotkeyHelpController} from '../input/hotkey-help-controller.js'; import {TextScanner} from '../language/text-scanner.js'; +import {checkPopupPreviewURL} from '../pages/settings/popup-preview-controller.js'; import {DisplayContentManager} from './display-content-manager.js'; import {DisplayGenerator} from './display-generator.js'; import {DisplayHistory} from './display-history.js'; @@ -1161,7 +1162,7 @@ export class Display extends EventDispatcher { const pageTheme = historyState?.pageTheme; this._themeController.siteTheme = pageTheme ?? null; - if (historyState?.url?.includes('popup-preview.html')) { + if (checkPopupPreviewURL(historyState?.url)) { pageType = 'popupPreview'; } } catch (e) { -- cgit v1.2.3