File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
4
4
// @author KudoAI
5
5
// @namespace https://kudoai.com
6
- // @version 2025.5.26.6
6
+ // @version 2025.5.26.7
7
7
// @license MIT
8
8
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
9
9
// @icon 64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
217
217
load ( ...keys ) {
218
218
keys . flat ( ) . forEach ( key => config [ key ] = GM_getValue ( `${ app . configKeyPrefix } _${ key } ` , initDefaultVal ( key ) ) )
219
219
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' )
222
222
}
223
223
} ,
224
224
save ( key , val ) { GM_setValue ( `${ app . configKeyPrefix } _${ key } ` , val ) ; config [ key ] = val }
You can’t perform that action at this time.
0 commit comments