Skip to content
Snippets Groups Projects
Commit 6c1f03ee authored by syuilo's avatar syuilo
Browse files

enhance(client): Improve stability of version comparison

parent cced8302
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment