forked from rDrama/rDrama
fix typo
parent
61d420cd78
commit
cf0cda8bc8
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -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));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue