mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update std.js
This commit is contained in:
parent
07d8a749a2
commit
b1808c3fd3
|
@ -313,7 +313,12 @@ function AsyncFunction(f) {
|
|||
|
||||
this.run = function() {
|
||||
if (this.proxyWindow != null) {
|
||||
this.proxyWindow.setTimeout(1, this.f);
|
||||
try {
|
||||
this.proxyWindow.setTimeout(1, this.f);
|
||||
} catch (e) {
|
||||
console.warn("AsyncFunction proxyWindow.setTimeout failed:", e.message);
|
||||
sleep(1, this.f);
|
||||
}
|
||||
} else {
|
||||
sleep(1, this.f);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user