refactor(client): use top-level await
This commit is contained in:
parent
4610d8dfe3
commit
9db2f60053
|
@ -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));
|
||||||
})();
|
|
||||||
|
|
Loading…
Reference in a new issue