powermanager - Catch the case of the wrapped function being a string

pull/2601/head
Martin Boonk 2023-02-26 14:05:01 +01:00
parent 9e7f22df00
commit 7ff5796fde
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
let functions = {}; let functions = {};
let wrapDeferred = ((o,t) => (a) => { let wrapDeferred = ((o,t) => (a) => {
if (a == eval){ if (a == eval || typeof a == "string") {
return o.apply(this, arguments); return o.apply(this, arguments);
} else { } else {
let wrapped = a; let wrapped = a;