mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-15 03:44:31 +08:00
fixed dependencies
This commit is contained in:
parent
8f52cde98d
commit
5f81f01f74
2 changed files with 2 additions and 6 deletions
|
|
@ -9,4 +9,3 @@ global.snapshot = db_getSnapshot;
|
|||
global.config = config;
|
||||
global.MP = MP;
|
||||
global.addnotif = Notifications.add;
|
||||
global.emoji = emoji;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
const emoji = require("node-emoji");
|
||||
const { getEmojiList } = require("./misc");
|
||||
|
||||
class EmojiSuggestions {
|
||||
constructor(jqelement) {
|
||||
this.element = jqelement;
|
||||
|
|
@ -9,7 +6,7 @@ class EmojiSuggestions {
|
|||
}
|
||||
|
||||
async updateSuggestions(text) {
|
||||
let emoji = await getEmojiList();
|
||||
let emoji = await Misc.getEmojiList();
|
||||
this.element.empty();
|
||||
this.suggestionList = [];
|
||||
let suggested = 0;
|
||||
|
|
@ -1007,7 +1004,7 @@ async function mp_insertImageEmoji(text) {
|
|||
if (text.length === 1) big = " big";
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
if (/:.+:/g.test(text[i])) {
|
||||
let emoji = await getEmojiList();
|
||||
let emoji = await Misc.getEmojiList();
|
||||
let result = emoji.filter((e) => e.from == text[i].replace(/:/g, ""));
|
||||
if (result[0] !== undefined) {
|
||||
text[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue