Skip to content

Commit f7ad0dc

Browse files
committed
1 parent 23a44c9 commit f7ad0dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.5.26.6
6+
// @version 2025.5.26.7
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -217,8 +217,8 @@
217217
load(...keys) {
218218
keys.flat().forEach(key => config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`, initDefaultVal(key)))
219219
function initDefaultVal(key) {
220-
return this.controls?.[key]?.defaultVal
221-
?? ( this.controls?.[key]?.type == 'slider' ? 100 : this.controls?.[key]?.type == 'toggle' )
220+
const ctrlData = this.controls?.[key]
221+
return ctrlData?.defaultVal ?? ( ctrlData?.type == 'slider' ? 100 : ctrlData?.type == 'toggle' )
222222
}
223223
},
224224
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }

0 commit comments

Comments
 (0)