Don't throw `target.apply is not a function`

For #705
This commit is contained in:
kkapsner 2024-04-17 00:34:19 +02:00
parent 3eedc7b7dc
commit 00e60074c3
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@
return original.apply(thisArg, args);
}
catch (error){
return target.apply(thisArg, args);
return scope.getWrapped(target).apply(thisArg, args);
}
}
}, window, "");