mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:43:09 +02:00
refactor(client): use top-level await
This commit is contained in:
parent
4610d8dfe3
commit
9db2f60053
1 changed files with 461 additions and 463 deletions
|
@ -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