mirror of https://github.com/espruino/BangleApps
powermanager - Catch the case of the wrapped function being a string
parent
9e7f22df00
commit
7ff5796fde
|
@ -77,7 +77,7 @@
|
|||
|
||||
let functions = {};
|
||||
let wrapDeferred = ((o,t) => (a) => {
|
||||
if (a == eval){
|
||||
if (a == eval || typeof a == "string") {
|
||||
return o.apply(this, arguments);
|
||||
} else {
|
||||
let wrapped = a;
|
||||
|
|
Loading…
Reference in New Issue