File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -660,21 +660,21 @@ class Tab extends EventTargetShim {
660
660
}
661
661
662
662
createModal ( title , { isOpen = false } = { } ) {
663
- const modal = modal . createEditorModal ( this , title , { isOpen} ) ;
664
- window . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
665
- return modal ;
663
+ const createdModal = modal . createEditorModal ( this , title , { isOpen} ) ;
664
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , createdModal ) ;
665
+ return createdModal ;
666
666
}
667
667
668
668
confirm ( ...args ) {
669
- const modal = modal . confirm ( this , ...args ) ;
670
- window . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
671
- return modal ;
669
+ const createdModal = modal . confirm ( this , ...args ) ;
670
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , createdModal ) ;
671
+ return createdModal ;
672
672
}
673
673
674
674
prompt ( ...args ) {
675
- const modal = modal . prompt ( this , ...args ) ;
676
- window . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
677
- return modal ;
675
+ const createdModal = modal . prompt ( this , ...args ) ;
676
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , createdModal ) ;
677
+ return createdModal ;
678
678
}
679
679
}
680
680
You can’t perform that action at this time.
0 commit comments