From 4ec1de0c98199b637bb538ee567ee7b2ffacbb80 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Mon, 6 May 2024 21:29:06 -0400 Subject: Fix mobile action-popup (#886) * Fix mobile action popup * Fix toggle-handle * Prevent action-popup looking wacky if it somehow gets rendered as a popup (desktop) instead of a full page (mobile) * Replace chevron icons with action specific icons --- ext/js/pages/action-popup-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js') diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js index 8dca8934..4125b2d1 100644 --- a/ext/js/pages/action-popup-main.js +++ b/ext/js/pages/action-popup-main.js @@ -187,7 +187,7 @@ class DisplayController { _setupOptions({options}) { const extensionEnabled = options.general.enable; const onToggleChanged = () => this._api.commandExec('toggleTextScanning'); - for (const toggle of /** @type {NodeListOf} */ (document.querySelectorAll('#enable-search,#enable-search2'))) { + for (const toggle of /** @type {NodeListOf} */ (document.querySelectorAll('.enable-search,.enable-search2'))) { toggle.checked = extensionEnabled; toggle.addEventListener('change', onToggleChanged, false); } -- cgit v1.2.3