File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
chrome/extension/components
firefox/extension/components Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ window.modals = {
37
37
} ,
38
38
39
39
init ( modal ) {
40
+ if ( ! modal ) return // to support non-div this.open()s
40
41
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
41
42
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
42
43
dom . fillStarryBG ( modal ) // add starry bg
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ window.modals = {
37
37
} ,
38
38
39
39
init ( modal ) {
40
+ if ( ! modal ) return // to support non-div this.open()s
40
41
if ( ! this . styles ) this . stylize ( ) // to init/append stylesheet
41
42
modal . classList . add ( 'no-user-select' , this . class ) ; modal . parentNode . classList . add ( `${ this . class } -bg` )
42
43
dom . fillStarryBG ( modal ) // add starry bg
You can’t perform that action at this time.
0 commit comments