js: drop jquery-timeout plugin.

Replace with `Danbooru.Utility.delay`.
This commit is contained in:
evazion
2019-08-14 01:46:44 -05:00
parent d812020030
commit e000bdb861
4 changed files with 10 additions and 54 deletions

View File

@@ -1,5 +1,9 @@
let Utility = {};
Utility.delay = function(milliseconds) {
return new Promise(resolve => setTimeout(resolve, milliseconds));
}
Utility.meta = function(key) {
return $("meta[name=" + key + "]").attr("content");
}