setInterval
This commit is contained in:
parent
21e4c3dfe9
commit
4cd70df7f4
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +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() {
|
||||
const now = Date.now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue