File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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.8.24
6+ // @version 2025.8.24.1
77// @license MIT
88// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99// @icon 64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
14251425 btnsDiv . querySelectorAll ( 'button' ) . forEach ( ( btn , idx ) => {
14261426 if ( idx == 0 ) btn . style . display = 'none' // hide Dismiss button
14271427 else btn . classList . toggle ( 'primary-modal-btn' , // emphasize preferred API
1428- config . preferredAPI . toLowerCase ( ) == btn . textContent . toLowerCase ( )
1428+ config . preferredAPI && config . preferredAPI . toLowerCase ( ) == btn . textContent . toLowerCase ( )
14291429 || btn . textContent == app . msgs . menuLabel_random && ! config . preferredAPI )
14301430 } )
14311431
You can’t perform that action at this time.
0 commit comments