Skip to content

Commit 727029e

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-extensionss/tree/main/bravegpt]
1 parent f7b94d2 commit 727029e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chatgpt/bravegpt/bravegpt.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-Brave Search (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.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -798,6 +798,7 @@
798798
},
799799

800800
init(modal) {
801+
if (!modal) return // to support non-div this.open()s
801802
if (!this.styles) this.stylize() // to init/append stylesheet
802803

803804
// Add classes

0 commit comments

Comments
 (0)