Skip to content

Commit 1d19b0e

Browse files
committed
Replaced null w/ undefined for omitted function params to follow ES6+ patterns ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 2df71dc commit 1d19b0e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 5 additions & 5 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.9.24.1
151+
// @version 2025.9.28
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
@@ -1016,7 +1016,7 @@
10161016
if (anchorToggle.checked != config.anchored) modals.settings.toggle.switch(anchorToggle)
10171017
}
10181018
feedback.notify(`${app.msgs.mode_anchor} ${menus.toolbar.state.words[+config.anchored]}`,
1019-
null, sidebarModeToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown
1019+
null, sidebarModeToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
10201020
},
10211021

10221022
animations(layer) {
@@ -1046,7 +1046,7 @@
10461046
`button[class*=standby]:has(svg.${ mode == 'get' ? 'send' : 'summarize' })`)?.click()
10471047
}
10481048
feedback.notify(`${settings.controls[modeKey].label} ${menus.toolbar.state.words[+config[modeKey]]}`,
1049-
null, conflictingModeToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown
1049+
null, conflictingModeToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
10501050
if (modals.settings.get()) { // update visual state of Settings toggle
10511051
const modeToggle = document.querySelector(`[id*=${modeKey}] input`)
10521052
if (modeToggle.checked != config[modeKey]) modals.settings.toggle.switch(modeToggle)
@@ -1076,7 +1076,7 @@
10761076
['get', 'summarize'].forEach(mode => {
10771077
if (config[`auto${log.toTitleCase(mode)}`]) { toggle.autoGen(mode) ; autoGenToggled = true }})
10781078
feedback.notify(`${settings.controls[modeKey].label} ${menus.toolbar.state.words[+config[modeKey]]}`,
1079-
null, autoGenToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown)
1079+
null, autoGenToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown)
10801080
if (modals.settings.get()) { // update visual state of Settings toggle
10811081
const modeToggle = document.querySelector(`[id*=${modeKey}] input`)
10821082
if (modeToggle.checked != config[modeKey]) modals.settings.toggle.switch(modeToggle)
@@ -1162,7 +1162,7 @@
11621162
if (mode == 'sticky' && prevStickyState == config.stickySidebar) return
11631163
feedback.notify(`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
11641164
menus.toolbar.state.words[+config[configKeyName]]}`,
1165-
null, anchorModeDisabled ? 2.75 : null) // +1s duration if conflicting mode notif shown
1165+
null, anchorModeDisabled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
11661166
},
11671167

11681168
streaming() {

0 commit comments

Comments
 (0)