fix call stack error

This commit is contained in:
Zack Rauen 2020-02-10 09:43:44 -05:00
parent 22f5f674c3
commit cdcf6937b8
2 changed files with 6 additions and 3 deletions

View File

@ -1332,10 +1332,13 @@ var Utils = class {
if (once) cancel();
return data.returnValue;
};
Object.assign(what[methodName], origMethod);
what[methodName].__monkeyPatched = true;
if (!what[methodName].__originalMethod) what[methodName].__originalMethod = origMethod;
what[methodName].displayName = displayName;
what[methodName].toString = function() {return what[methodName].__originalMethod.toString();};
if (!what[methodName].__originalMethod) {
what[methodName].__originalMethod = origMethod;
what[methodName].toString = function() {return origMethod.toString();};
}
return cancel;
}

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long