From 451bcab01fd591ec54b63af0fc7084dc9f37928b Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:18:43 -0400 Subject: Add auto option to body theme (#1086) * Add auto option to body theme * Fix firefox bug where themes do not set correctly in settings due to getOptions failing --- ext/js/pages/action-popup-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/pages/action-popup-main.js') diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js index ce29bcf1..4137d5c3 100644 --- a/ext/js/pages/action-popup-main.js +++ b/ext/js/pages/action-popup-main.js @@ -37,7 +37,6 @@ class DisplayController { /** */ async prepare() { - this._themeController.siteTheme = 'light'; this._themeController.prepare(); const manifest = chrome.runtime.getManifest(); @@ -209,6 +208,7 @@ class DisplayController { void this._updatePermissionsWarnings(options); this._themeController.theme = options.general.popupTheme; + this._themeController.siteOverride = true; this._themeController.updateTheme(); } -- cgit v1.2.3