From efd0368e568b39ca31d75bc3962e2627681bff13 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Feb 2019 04:52:40 +0900 Subject: [PATCH] Resolve #4305 --- package.json | 1 - src/client/app/boot.js | 4 ++-- src/client/app/common/scripts/check-for-update.ts | 4 ++-- src/client/app/common/views/widgets/version.vue | 2 +- src/client/app/config.ts | 2 -- src/client/app/desktop/views/components/settings.vue | 2 +- src/client/app/init.ts | 2 +- src/client/app/mios.ts | 2 +- src/client/app/mobile/views/pages/settings.vue | 2 +- src/server/api/endpoints/meta.ts | 3 --- webpack.config.ts | 3 +-- 11 files changed, 10 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 6514cc6057..d876274c73 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "misskey", "author": "syuilo ", "version": "10.87.1", - "clientVersion": "2.0.14358", "codename": "nighthike", "repository": { "type": "git", diff --git a/src/client/app/boot.js b/src/client/app/boot.js index 28ba1be099..f93cb407e8 100644 --- a/src/client/app/boot.js +++ b/src/client/app/boot.js @@ -138,8 +138,8 @@ const meta = await res.json(); // Compare versions - if (meta.clientVersion != ver) { - localStorage.setItem('v', meta.clientVersion); + if (meta.version != ver) { + localStorage.setItem('v', meta.version); alert( 'Misskeyの新しいバージョンがあります。ページを再度読み込みします。' + diff --git a/src/client/app/common/scripts/check-for-update.ts b/src/client/app/common/scripts/check-for-update.ts index 20da83a0c2..d487915766 100644 --- a/src/client/app/common/scripts/check-for-update.ts +++ b/src/client/app/common/scripts/check-for-update.ts @@ -1,8 +1,8 @@ -import { clientVersion as current } from '../../config'; +import { version as current } from '../../config'; export default async function($root: any, force = false, silent = false) { const meta = await $root.getMeta(force); - const newer = meta.clientVersion; + const newer = meta.version; if (newer != current) { localStorage.setItem('should-refresh', 'true'); diff --git a/src/client/app/common/views/widgets/version.vue b/src/client/app/common/views/widgets/version.vue index 470eb1a84e..e8f6c08f34 100644 --- a/src/client/app/common/views/widgets/version.vue +++ b/src/client/app/common/views/widgets/version.vue @@ -3,7 +3,7 @@