mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-10-31 23:31:48 +09:00
enhance(client): Improve stability of version comparison
This commit is contained in:
parent
cced83024b
commit
6c1f03eefd
@ -207,8 +207,11 @@ if (lastVersion !== version) {
|
||||
// テーマリビルドするため
|
||||
localStorage.removeItem('theme');
|
||||
|
||||
if (lastVersion != null && compareVersions(version, lastVersion) === 1) {
|
||||
popup(import('@client/components/updated.vue'), {}, {}, 'closed');
|
||||
try { // 変なバージョン文字列来るとcompareVersionsでエラーになるため
|
||||
if (lastVersion != null && compareVersions(version, lastVersion) === 1) {
|
||||
popup(import('@client/components/updated.vue'), {}, {}, 'closed');
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user