Update std.js

This commit is contained in:
Namhyeon Go 2022-02-21 07:18:28 +09:00 committed by GitHub
parent 9516a7f60d
commit fa08d4c606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,9 +135,9 @@ function repeat(target, callback, onError) {
}
end = Date.now();
} else if (typeof window !== "undefined") {
if (typeof callback === "function")
if (typeof callback === "function") {
handler = setInterval(callback, ms);
;
}
}
return { 'ms': end, 'handler': handler };