File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
chatgpt/chatgpt-auto-refresh Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 220
220
// @description :zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221
221
// @author Adam Lui
222
222
// @namespace https://github.com/adamlui
223
- // @version 2025.1.12
223
+ // @version 2025.1.12.1
224
224
// @license MIT
225
225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226
226
// @icon 64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
534
534
535
535
open ( modalType , modalSubType ) {
536
536
const modal = modalSubType ? this [ modalType ] [ modalSubType ] ( ) : this [ modalType ] ( ) // show modal
537
+ if ( ! modal ) return // since no div returned
537
538
this . stack . unshift ( modalSubType ? `${ modalType } _${ modalSubType } ` : modalType ) // add to stack
538
539
this . init ( modal ) // add classes + starry bg
539
540
this . observeRemoval ( modal , modalType , modalSubType ) // to maintain stack for proper nav
540
541
} ,
541
542
542
543
init ( modal ) {
543
- if ( ! modal ) return // to support non-div this.open()s
544
544
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
545
545
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
546
546
fillStarryBG ( modal ) // add starry bg
You can’t perform that action at this time.
0 commit comments