File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
chatgpt/chatgpt-auto-talk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 225
225
// @description :zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226
226
// @author Adam Lui
227
227
// @namespace https://github.com/adamlui
228
- // @version 2025.1.12
228
+ // @version 2025.1.12.1
229
229
// @license MIT
230
230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231
231
// @icon 64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
485
485
486
486
open ( modalType , modalSubType ) {
487
487
const modal = modalSubType ? this [ modalType ] [ modalSubType ] ( ) : this [ modalType ] ( ) // show modal
488
+ if ( ! modal ) return // since no div returned
488
489
this . stack . unshift ( modalSubType ? `${ modalType } _${ modalSubType } ` : modalType ) // add to stack
489
490
this . init ( modal ) // add classes + starry bg
490
491
this . observeRemoval ( modal , modalType , modalSubType ) // to maintain stack for proper nav
491
492
} ,
492
493
493
494
init ( modal ) {
494
- if ( ! modal ) return // to support non-div this.open()s
495
495
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
496
496
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
497
497
fillStarryBG ( modal ) // add starry bg
You can’t perform that action at this time.
0 commit comments