@@ -431,22 +431,22 @@ export default async function({ addon }) {
431
431
432
432
/* addon modal API */
433
433
console . log ( [ addon . tabClass ] ) ;
434
- const ogAddonPrompt = addon . tabClass . prototype . prompt ;
435
- addon . tabClass . prototype . prompt = function ( ...args ) {
434
+ const ogAddonPrompt = addon . tabClass . constructor . prototype . prompt ;
435
+ addon . tabClass . constructor . 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 . tabClass . prototype . confirm ;
442
- addon . tabClass . prototype . confirm = function ( ...args ) {
441
+ const ogAddonConfirm = addon . tabClass . constructor . prototype . confirm ;
442
+ addon . tabClass . constructor . 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 . tabClass . prototype . createModal ;
449
- addon . tabClass . prototype . createModal = function ( ...args ) {
448
+ const ogAddonCreateModal = addon . tabClass . constructor . prototype . createModal ;
449
+ addon . tabClass . constructor . prototype . createModal = function ( ...args ) {
450
450
const modal = ogAddonCreateModal . call ( this , ...args ) ;
451
451
handleOpenAnimation ( "modal" ) ;
452
452
attachCloseHijack ( "modal" ) ;
0 commit comments