1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 01:09:54 +00:00

better notifications

This commit is contained in:
Laura
2025-08-25 23:36:46 +02:00
parent 82e91cfc3e
commit aa40645836
5 changed files with 89 additions and 12 deletions

View File

@@ -66,6 +66,10 @@ function fillSelect($select, options, callback) {
}
}
function wait(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function escapeHtml(text) {
return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
}