forked from rDrama/rDrama
1
0
Fork 0
master
Aevann 2024-03-06 02:12:35 +02:00
parent 61d420cd78
commit cf0cda8bc8
3 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ function intersect(...sets) {
return res;
}
const EMOIJ_SEARCH_ENGINE_MIN_INTERVAL = 350;
const EMOJI_SEARCH_ENGINE_MIN_INTERVAL = 350;
let emojiSearcher = {
working: false,
queries: [],
@ -87,7 +87,7 @@ let emojiSearcher = {
emojiNotFoundDOM.hidden = resultSet.size !== 0;
let sleepTime = EMOIJ_SEARCH_ENGINE_MIN_INTERVAL - (Date.now() - startTime);
let sleepTime = EMOJI_SEARCH_ENGINE_MIN_INTERVAL - (Date.now() - startTime);
if (sleepTime > 0)
await new Promise(r => setTimeout(r, sleepTime));
}

View File

@ -24,7 +24,7 @@ const groupsSearchDictionary = {
if (this.dict[target] !== undefined && this.dict[target].tag === tag)
this.dict[target].emojiNames.push(groupName);
else
this.dict.splice(target, 0, new EmoijsDictNode(tag, groupName));
this.dict.splice(target, 0, new EmojisDictNode(tag, groupName));
},
/**

View File

@ -1,6 +1,6 @@
let searchDictionaryState = "inactive";
class EmoijsDictNode
class EmojisDictNode
{
constructor(tag, name) {
this.tag = tag;
@ -30,7 +30,7 @@ const emojisSearchDictionary = {
if (this.dict[target] !== undefined && this.dict[target].tag === tag)
this.dict[target].emojiNames.push(emojiName);
else
this.dict.splice(target ,0,new EmoijsDictNode(tag, emojiName));
this.dict.splice(target ,0,new EmojisDictNode(tag, emojiName));
},
/**