サーバーのバージョンとクライアントのバージョンを分けた

This commit is contained in:
syuilo
2018-04-22 21:32:09 +09:00
parent 8682fd21c4
commit 0b99483ccb
8 changed files with 16 additions and 22 deletions

View File

@ -3,7 +3,7 @@ import { version as current } from '../../config';
export default async function(mios: MiOS, force = false, silent = false) {
const meta = await mios.getMeta(force);
const newer = meta.version;
const newer = meta.clientVersion;
if (newer != current) {
localStorage.setItem('should-refresh', 'true');