Skip to content

Commit 0d84b86

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-refresh]
1 parent 5e8dd1b commit 0d84b86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.1.11
223+
// @version 2025.1.11.1
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -403,7 +403,7 @@
403403
load(...keys) {
404404
keys.flat().forEach(key => {
405405
config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`,
406-
this.controls[key]?.defaultVal || this.controls[key]?.type == 'toggle')
406+
this.controls[key]?.defaultVal ?? this.controls[key]?.type == 'toggle')
407407
})
408408
},
409409

0 commit comments

Comments
 (0)