mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 21:23:46 +08:00
fix require() actually not working after build in the frontend
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
/*
|
||||
* Common functions - can be used in frontend or backend
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// Common JS cannot be used in frontend sadly
|
||||
// sleep, ucfirst is duplicated in ../src/util-frontend.js
|
||||
|
||||
exports.sleep = function (ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
Reference in New Issue
Block a user