From 3285513d3aa7358a6249f9131da53b4246bcd68e Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Thu, 6 Jan 2022 16:22:23 -0500 Subject: [PATCH] do something maybe possibly --- patcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patcher.js b/patcher.js index 6286505..484d2d3 100644 --- a/patcher.js +++ b/patcher.js @@ -6,7 +6,7 @@ function monkeyPatch(name, parentObj, patches) { const handler = { apply: (target, thisArg, [ctx, args]) => { if (before !== undefined) before.apply(ctx, args); - res = (patches["instead"] !== undefined) ? instead.apply(ctx, [target.bind(ctx), ...args]) : target.apply(ctx, [...args]) + res = (patches["instead"] !== undefined) ? instead.apply(ctx, [target.bind(ctx), ...args]) : target.apply(ctx, args) if (after === undefined) return res return after.apply(ctx, [res].concat(args)); }