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