diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-09-22 22:18:08 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-09-22 22:18:08 +0900 |
| commit | fbbce302bc541ba7eb30f11e908ade95100bab43 (patch) | |
| tree | 1f71a5e572fa33ed6860cb4fa684d8765a0da77e /src | |
| parent | #7813の修正 (diff) | |
| download | sharkey-fbbce302bc541ba7eb30f11e908ade95100bab43.tar.gz sharkey-fbbce302bc541ba7eb30f11e908ade95100bab43.tar.bz2 sharkey-fbbce302bc541ba7eb30f11e908ade95100bab43.zip | |
enhance(client): 非ログイン自は更新ダイアログを出さないように
Resolve #7756
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/init.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index aa9cd817c4..c15374e49b 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -217,7 +217,10 @@ if (lastVersion !== version) { try { // 変なバージョン文字列来るとcompareVersionsでエラーになるため if (lastVersion != null && compareVersions(version, lastVersion) === 1) { - popup(import('@client/components/updated.vue'), {}, {}, 'closed'); + // ログインしてる場合だけ + if ($i) { + popup(import('@client/components/updated.vue'), {}, {}, 'closed'); + } } } catch (e) { } |