refactor(client): use top-level await

This commit is contained in:
syuilo 2023-02-02 09:00:34 +09:00
parent 4610d8dfe3
commit 9db2f60053

View file

@ -47,7 +47,6 @@ import { miLocalStorage } from './local-storage';
import { claimAchievement, claimedAchievements } from './scripts/achievements'; import { claimAchievement, claimedAchievements } from './scripts/achievements';
import { fetchCustomEmojis } from './custom-emojis'; import { fetchCustomEmojis } from './custom-emojis';
(async () => {
console.info(`Misskey v${version}`); console.info(`Misskey v${version}`);
if (_DEV_) { if (_DEV_) {
@ -541,4 +540,3 @@ import { fetchCustomEmojis } from './custom-emojis';
// shortcut // shortcut
document.addEventListener('keydown', makeHotkey(hotkeys)); document.addEventListener('keydown', makeHotkey(hotkeys));
})();