diff options
| author | Johann150 <johann.galle@protonmail.com> | 2022-05-26 15:53:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-26 22:53:09 +0900 |
| commit | 3dae18b93cc2a219087c4e1a8acc763ff064b71d (patch) | |
| tree | ee00206569ab940f7e1af154452123567c4d92f8 /packages/client/src/init.ts | |
| parent | use http-signature module that supports hs2019 (#8635) (diff) | |
| download | sharkey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.tar.gz sharkey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.tar.bz2 sharkey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.zip | |
fix lints (#8737)
* fix: emits use ev instead of e
* fix: errors use err instead of e
* fix: replace use of data where possible
* fix: events use evt instead of e
* fix: use strict equals
* fix: use emoji instead of e
* fix: vue lints
Diffstat (limited to 'packages/client/src/init.ts')
| -rw-r--r-- | packages/client/src/init.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index 5dbbcb2a2b..bb6176e409 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -146,7 +146,7 @@ if ($i && $i.token) { try { document.body.innerHTML = '<div>Please wait...</div>'; await login(i); - } catch (e) { + } catch (err) { // Render the error screen // TODO: ちゃんとしたコンポーネントをレンダリングする(v10とかのトラブルシューティングゲーム付きのやつみたいな) document.body.innerHTML = '<div id="err">Oops!</div>'; @@ -249,7 +249,7 @@ if (lastVersion !== version) { popup(defineAsyncComponent(() => import('@/components/updated.vue')), {}, {}, 'closed'); } } - } catch (e) { + } catch (err) { } } @@ -334,7 +334,7 @@ stream.on('_disconnected_', async () => { } }); -stream.on('emojiAdded', data => { +stream.on('emojiAdded', emojiData => { // TODO //store.commit('instance/set', ); }); |