fixed dependencies

This commit is contained in:
Miodec 2021-03-02 18:19:56 +00:00
parent 8f52cde98d
commit 5f81f01f74
2 changed files with 2 additions and 6 deletions

View file

@ -9,4 +9,3 @@ global.snapshot = db_getSnapshot;
global.config = config;
global.MP = MP;
global.addnotif = Notifications.add;
global.emoji = emoji;

View file

@ -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[