From fbbce302bc541ba7eb30f11e908ade95100bab43 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Sep 2021 22:18:08 +0900 Subject: enhance(client): 非ログイン自は更新ダイアログを出さないように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve #7756 --- src/client/init.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) { } -- cgit v1.2.3-freya