Skip to content

Commit a910c64

Browse files
committed
Renamed toolbarMenu.ids to entryIDs for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 8120c4e commit a910c64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 4 additions & 4 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.4.1.1
151+
// @version 2025.4.2
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@06af076/assets/images/icons/duckduckgpt/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@06af076/assets/images/icons/duckduckgpt/icon64.png
@@ -620,7 +620,7 @@
620620
refresh() {
621621
if (typeof GM_unregisterMenuCommand == 'undefined')
622622
return log.debug('GM_unregisterMenuCommand not supported.')
623-
for (const id of this.ids) { GM_unregisterMenuCommand(id) } this.register()
623+
for (const id of this.entryIDs) { GM_unregisterMenuCommand(id) } this.register()
624624
},
625625

626626
register() {
@@ -629,11 +629,11 @@
629629
const pmLabel = this.state.symbols[+config.proxyAPIenabled] + ' '
630630
+ settings.controls.proxyAPIenabled.label + ' '
631631
+ this.state.separator + this.state.words[+config.proxyAPIenabled]
632-
this.ids = [GM_registerMenuCommand(pmLabel, toggle.proxyMode,
632+
this.entryIDs = [GM_registerMenuCommand(pmLabel, toggle.proxyMode,
633633
env.scriptManager.supportsTooltips ? { title: settings.controls.proxyAPIenabled.helptip } : undefined)];
634634

635635
// Add About/Settings entries
636-
['about', 'settings'].forEach(entryType => this.ids.push(GM_registerMenuCommand(
636+
['about', 'settings'].forEach(entryType => this.entryIDs.push(GM_registerMenuCommand(
637637
entryType == 'about' ? `💡 ${settings.controls.about.label}` : `⚙️ ${app.msgs.menuLabel_settings}`,
638638
() => modals.open(entryType), env.scriptManager.supportsTooltips ? { title: ' ' } : undefined
639639
)))

0 commit comments

Comments
 (0)