refac: electron app

This commit is contained in:
Timothy Jaeryang Baek
2025-01-17 17:05:52 -08:00
parent 70aced7f58
commit f5437dae4a
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@
temporaryChatEnabled,
isLastActiveTab,
isApp,
appVersion
appInfo
} from '$lib/stores';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
@@ -203,12 +203,12 @@
onMount(async () => {
if (window?.electronAPI) {
const res = await window.electronAPI.send({
type: 'version'
type: 'info'
});
if (res) {
isApp.set(true);
appVersion.set(res.version);
appInfo.set(res);
}
}