Skip to content

Commit f1283b0

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/duckduckgpt]
1 parent 4392fb0 commit f1283b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.11.1
151+
// @version 2025.1.12
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -805,6 +805,7 @@
805805
},
806806

807807
init(modal) {
808+
if (!modal) return // to support non-div this.open()s
808809
if (!this.styles) this.stylize() // to init/append stylesheet
809810

810811
// Add classes

0 commit comments

Comments
 (0)