Skip to content

Commit f205018

Browse files
committed
Moved wrongly pasted code from Infinity to Widescreen file ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent faf2bc9 commit f205018

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

firefox/extension/popup/controller.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,12 @@
193193
// Auto-expand SITE SETTINGS conditionally
194194
const onMatchedPage = chrome.runtime.getManifest().content_scripts[0].matches.toString().includes(env.site)
195195
if (!onMatchedPage || config[`${env.site}Disabled`]) { // auto-expand Site Settings
196-
if (!onMatchedPage) ssLabel.div.style.pointerEvents = 'none' // disable label
196+
if (!onMatchedPage) ssLabel.div.style.pointerEvents = 'none' // disable label from triggering unneeded collapse
197197
setTimeout(() => toggleSiteSettingsVisibility({ transitions: onMatchedPage }),
198198
!onMatchedPage ? 0 // no delay since emptyish already
199-
: env.browser.isFF ? 335 : 250) // some delay since entries appear (more in FF since no transition)
199+
: !env.browser.isFF ? 250 // some delay since other settings appear
200+
: 335 // more in FF since no transition
201+
)
200202
}
201203

202204
// LOCALIZE labels

0 commit comments

Comments
 (0)