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 @@ -431,22 +431,22 @@ export default async function({ addon }) {
431
431
432
432
/* addon modal API */
433
433
console . log ( addon . tab )
434
- const ogAddonPrompt = addon . tab . prompt ;
435
- addon . tab . prompt = function ( ...args ) {
434
+ const ogAddonPrompt = addon . tab . prototype . prompt ;
435
+ addon . tab . prototype . prompt = function ( ...args ) {
436
436
const modal = ogAddonPrompt . call ( this , ...args ) ;
437
437
handleOpenAnimation ( "modal" ) ;
438
438
attachCloseHijack ( "modal" ) ;
439
439
return modal ;
440
440
}
441
- const ogAddonConfirm = addon . tab . confirm ;
442
- addon . tab . confirm = function ( ...args ) {
441
+ const ogAddonConfirm = addon . tab . prototype . confirm ;
442
+ addon . tab . prototype . confirm = function ( ...args ) {
443
443
const modal = ogAddonConfirm . call ( this , ...args ) ;
444
444
handleOpenAnimation ( "modal" ) ;
445
445
attachCloseHijack ( "modal" ) ;
446
446
return modal ;
447
447
}
448
- const ogAddonCreateModal = addon . tab . createModal ;
449
- addon . tab . createModal = function ( ...args ) {
448
+ const ogAddonCreateModal = addon . tab . prototype . createModal ;
449
+ addon . tab . prototype . createModal = function ( ...args ) {
450
450
const modal = ogAddonCreateModal . call ( this , ...args ) ;
451
451
handleOpenAnimation ( "modal" ) ;
452
452
attachCloseHijack ( "modal" ) ;
You can’t perform that action at this time.
0 commit comments