Skip to content

Commit c273d2f

Browse files
committed
Replaced ^ operators w/ more readable != ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 7101903 commit c273d2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.19
151+
// @version 2025.10.19.1
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -1158,7 +1158,7 @@
11581158
icons.create({ key: `widescreen${ config.widerSidebar ? 'Wide' : 'Tall' }`})))
11591159
if (modals.settings.get()) { // update visual state of Settings toggles
11601160
const sidebarToggle = document.querySelector(`[id*=${mode}] input`)
1161-
if (sidebarToggle.checked ^ config[`${mode}Sidebar`]) modals.settings.toggle.switch(sidebarToggle)
1161+
if (sidebarToggle.checked != config[`${mode}Sidebar`]) modals.settings.toggle.switch(sidebarToggle)
11621162
}
11631163

11641164
// Notify of mode change
@@ -2337,7 +2337,7 @@
23372337
else {
23382338
settings.save(key, !config[key]) // update config
23392339
feedback.notify(`${settings.controls[key].label} ${
2340-
menus.toolbar.state.words[+(key.includes('Disabled') ^ config[key])]}`)
2340+
menus.toolbar.state.words[+(key.includes('Disabled') != config[key])]}`)
23412341
}
23422342
}
23432343

0 commit comments

Comments
 (0)