aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-06-20 12:03:17 -0400
committerGitHub <noreply@github.com>2024-06-20 16:03:17 +0000
commit9f4e595c7264a52ab85eb07c4d1411e4efb09ab1 (patch)
tree55f8ea5fec49801915174dd92367032c47a8c149 /ext/js/display
parent171722966cc8d2057c23fbbb454b3aa16897c492 (diff)
Fix settings display when shadow is on auto and body is light or dark (#1089)
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display.js3
1 files changed, 2 insertions, 1 deletions
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) {