This commit is contained in:
syuilo
2019-02-18 04:52:40 +09:00
parent a766a57af9
commit efd0368e56
11 changed files with 10 additions and 17 deletions

View File

@ -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');