mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 16:33:58 +08:00
戈mprove the readibility of important condition
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
// Common JS cannot be used in frontend sadly
|
||||
// sleep, ucfirst is duplicated in ../src/util-frontend.js
|
||||
|
||||
exports.DOWN = 0;
|
||||
exports.UP = 1;
|
||||
exports.PENDING = 2;
|
||||
|
||||
exports.sleep = function (ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
Reference in New Issue
Block a user