Skip to content

Commit 015f2f8

Browse files
committed
Replaced || w/ ?? in settings.load() for proper nullish val handling ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-talk]
1 parent 59e2ccf commit 015f2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.1.11
228+
// @version 2025.1.11.1
229229
// @license MIT
230230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -382,7 +382,7 @@
382382
load(...keys) {
383383
keys.flat().forEach(key => {
384384
config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`,
385-
this.controls[key]?.defaultVal || this.controls[key]?.type == 'toggle')
385+
this.controls[key]?.defaultVal ?? this.controls[key]?.type == 'toggle')
386386
})
387387
},
388388

0 commit comments

Comments
 (0)