From 00e60074c32a7650f7a14ee7ee67c3de13b6509d Mon Sep 17 00:00:00 2001 From: kkapsner Date: Wed, 17 Apr 2024 00:34:19 +0200 Subject: [PATCH] Don't throw `target.apply is not a function` For #705 --- lib/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension.js b/lib/extension.js index d4bf26b..b02ba41 100644 --- a/lib/extension.js +++ b/lib/extension.js @@ -215,7 +215,7 @@ return original.apply(thisArg, args); } catch (error){ - return target.apply(thisArg, args); + return scope.getWrapped(target).apply(thisArg, args); } } }, window, "");