戈mprove the readibility of important condition

This commit is contained in:
LouisLam
2021-07-24 11:42:14 +08:00
parent 3cc4955cad
commit d556509d07
2 changed files with 37 additions and 12 deletions

View File

@@ -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));
}