File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/addons/addons/editor-animations Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -430,22 +430,22 @@ export default async function({ addon }) {
430
430
}
431
431
432
432
/* addon modal API */
433
- const ogAddonPrompt = addon . tab . constructor . prototype . prompt ;
434
- addon . tab . constructor . prototype . prompt = function ( ...args ) {
433
+ const ogAddonPrompt = addon . tabClass . prompt ;
434
+ addon . tabClass . prompt = function ( ...args ) {
435
435
const modal = ogAddonPrompt . call ( this , ...args ) ;
436
436
handleOpenAnimation ( "modal" ) ;
437
437
attachCloseHijack ( "modal" ) ;
438
438
return modal ;
439
439
}
440
- const ogAddonConfirm = addon . tab . constructor . prototype . confirm ;
441
- addon . tab . constructor . prototype . confirm = function ( ...args ) {
440
+ const ogAddonConfirm = addon . tabClass . confirm ;
441
+ addon . tabClass . confirm = function ( ...args ) {
442
442
const modal = ogAddonConfirm . call ( this , ...args ) ;
443
443
handleOpenAnimation ( "modal" ) ;
444
444
attachCloseHijack ( "modal" ) ;
445
445
return modal ;
446
446
}
447
- const ogAddonCreateModal = addon . tab . constructor . prototype . createModal ;
448
- addon . tab . constructor . prototype . createModal = function ( ...args ) {
447
+ const ogAddonCreateModal = addon . tabClass . createModal ;
448
+ addon . tabClass . createModal = function ( ...args ) {
449
449
const modal = ogAddonCreateModal . call ( this , ...args ) ;
450
450
handleOpenAnimation ( "modal" ) ;
451
451
attachCloseHijack ( "modal" ) ;
You can’t perform that action at this time.
0 commit comments