Skip to content

Commit 843d291

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/amazongpt]
1 parent 0d84b86 commit 843d291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.1.11.1
6+
// @version 2025.1.11.2
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -232,7 +232,7 @@
232232
load(...keys) {
233233
keys.flat().forEach(key => {
234234
config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`,
235-
this.controls?.[key]?.defaultVal || this.controls?.[key]?.type == 'toggle')
235+
this.controls?.[key]?.defaultVal ?? this.controls?.[key]?.type == 'toggle')
236236
})
237237
},
238238
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }

0 commit comments

Comments
 (0)