chore (client): Firefish versions are lexicographically ordered

This commit is contained in:
naskya 2024-07-04 00:30:58 +09:00
parent e5ee673fed
commit aa01c3d8ce
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -240,26 +240,20 @@ function checkForSplash() {
// テーマリビルドするため
localStorage.removeItem("theme");
try {
// 変なバージョン文字列来るとcompareVersionsでエラーになるため
// If a strange version string comes, an error will occur in compareVersions.
if (
lastVersion != null &&
lastVersion < version &&
defaultStore.state.showUpdates
) {
// ログインしてる場合だけ
if (me) {
popup(
defineAsyncComponent(() => import("@/components/MkUpdated.vue")),
{},
{},
"closed",
);
}
if (
lastVersion != null &&
lastVersion < version &&
defaultStore.state.showUpdates
) {
// ログインしてる場合だけ
if (me) {
popup(
defineAsyncComponent(() => import("@/components/MkUpdated.vue")),
{},
{},
"closed",
);
}
} catch (err) {
console.error(err);
}
}