Merge branch 'master' into tls-expiry

# Conflicts:
#	server/model/monitor.js
This commit is contained in:
LouisLam
2021-07-26 20:35:50 +08:00
18 changed files with 134 additions and 30 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));
}