File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
chrome/extension/components
firefox/extension/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ window.modals = {
31
31
32
32
open ( modalType , modalSubType ) {
33
33
const modal = modalSubType ? this [ modalType ] [ modalSubType ] ( ) : this [ modalType ] ( ) // show modal
34
+ if ( ! modal ) return // since no div returned
34
35
this . stack . unshift ( modalSubType ? `${ modalType } _${ modalSubType } ` : modalType ) // add to stack
35
36
this . init ( modal ) // add classes + starry bg
36
37
this . observeRemoval ( modal , modalType , modalSubType ) // to maintain stack for proper nav
37
38
} ,
38
39
39
40
init ( modal ) {
40
- if ( ! modal ) return // to support non-div this.open()s
41
41
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
42
42
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
43
43
dom . fillStarryBG ( modal ) // add starry bg
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ window.modals = {
31
31
32
32
open ( modalType , modalSubType ) {
33
33
const modal = modalSubType ? this [ modalType ] [ modalSubType ] ( ) : this [ modalType ] ( ) // show modal
34
+ if ( ! modal ) return // since no div returned
34
35
this . stack . unshift ( modalSubType ? `${ modalType } _${ modalSubType } ` : modalType ) // add to stack
35
36
this . init ( modal ) // add classes + starry bg
36
37
this . observeRemoval ( modal , modalType , modalSubType ) // to maintain stack for proper nav
37
38
} ,
38
39
39
40
init ( modal ) {
40
- if ( ! modal ) return // to support non-div this.open()s
41
41
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
42
42
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
43
43
dom . fillStarryBG ( modal ) // add starry bg
You can’t perform that action at this time.
0 commit comments