Skip to content

Commit 4392fb0

Browse files
committed
Added early return to modals.init() if modal undefined to support non-div .open()s ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent b2522ba commit 4392fb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 2 additions & 1 deletion
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.3
6+
// @version 2025.1.12
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
@@ -623,6 +623,7 @@
623623
},
624624

625625
init(modal) {
626+
if (!modal) return // to support non-div this.open()s
626627
if (!this.styles) this.stylize() // to init/append stylesheet
627628

628629
// Add classes

0 commit comments

Comments
 (0)