This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-22 09:42:40 -08:00
1 parent ed7db1dd41
commit c2b5200663
2 files changed
+13 -5

No files matched your search

+12 -5
View File
@@ -202,14 +202,21 @@
onMount(async () => {
if (window?.electronAPI) {
const res = await window.electronAPI.send({
type: 'info'
const info = await window.electronAPI.send({
type: 'app:info'
});
if (res) {
if (info) {
isApp.set(true);
appInfo.set(res);
console.log(res);
appInfo.set(info);
const data = await window.electronAPI.send({
type: 'app:data'
});
if (data) {
appData.set(data);
}
}
}