blob: c447a517fa78f2ccd6900fca18c579ce3b665231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import MiOS from '../mios';
declare const _VERSION_: string;
export default async function(mios: MiOS) {
const meta = await mios.getMeta();
if (meta.version != _VERSION_) {
localStorage.setItem('should-refresh', 'true');
alert('%i18n:common.update-available%'.replace('{newer}', meta.version).replace('{current}', _VERSION_));
}
}
|