This commit is contained in:
tamaina
2023-01-16 10:13:19 +00:00
parent 4cd70df7f4
commit f2a9194c79
2 changed files with 20 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import * as Misskey from 'misskey-js';
const storageCache = miLocalStorage.getItem('emojis');
export const customEmojis = shallowRef<Misskey.entities.CustomEmoji[]>(storageCache ? JSON.parse(storageCache) : []);
fetchCustomEmojis();
window.setInterval(fetchCustomEmojis, 1000 * 60 * 10);
export async function fetchCustomEmojis() {