mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 15:15:12 +00:00
enhance(client): Improve stability of version comparison
This commit is contained in:
parent
cced83024b
commit
6c1f03eefd
1 changed files with 5 additions and 2 deletions
|
@ -207,8 +207,11 @@ if (lastVersion !== version) {
|
||||||
// テーマリビルドするため
|
// テーマリビルドするため
|
||||||
localStorage.removeItem('theme');
|
localStorage.removeItem('theme');
|
||||||
|
|
||||||
if (lastVersion != null && compareVersions(version, lastVersion) === 1) {
|
try { // 変なバージョン文字列来るとcompareVersionsでエラーになるため
|
||||||
popup(import('@client/components/updated.vue'), {}, {}, 'closed');
|
if (lastVersion != null && compareVersions(version, lastVersion) === 1) {
|
||||||
|
popup(import('@client/components/updated.vue'), {}, {}, 'closed');
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue