[fix] error on update

This commit is contained in:
kwaroran
2023-07-21 03:14:49 +09:00
parent 132a39384b
commit b0fa63a14b

View File

@@ -1,6 +1,6 @@
import { fetch } from "@tauri-apps/api/http"; import { fetch } from "@tauri-apps/api/http";
import { DataBase, appVer, setDatabase } from "./storage/database"; import { DataBase, appVer, setDatabase } from "./storage/database";
import { alertConfirm, alertMd } from "./alert"; import { alertConfirm, alertError, alertMd } from "./alert";
import { language } from "../lang"; import { language } from "../lang";
import { get } from "svelte/store"; import { get } from "svelte/store";
import {open} from '@tauri-apps/api/shell' import {open} from '@tauri-apps/api/shell'
@@ -38,7 +38,8 @@ export async function checkUpdate(){
} }
} catch (error) { } catch (error) {
alertError(error)
return
} }
} }