jointrashposs/assets/js/mi/io-emojis.ts
かっこかり 1f2b1aa58b
(Add) Tools: MFM Preview (#2)
* wip

* (add) mfm preview

* (fix) iroiro

* (Fix) build error

* (fix) something
2023-09-26 21:57:26 +09:00

13 lines
329 B
TypeScript

import { getIOEmoji } from './io-meta';
import * as Misskey from 'misskey-js';
export const customEmojisMap = new Map<string, Misskey.entities.CustomEmoji>();
async function init() {
const emojis = await getIOEmoji();
for (const emoji of emojis.emojis) {
customEmojisMap.set(emoji.name, emoji);
}
}
init();