add svelte local-app

This commit is contained in:
Anton Bracke
2022-02-20 20:30:53 +01:00
parent 2b08faaa33
commit d526db5bf3
35 changed files with 1225 additions and 123 deletions
+1
View File
@@ -3,6 +3,7 @@ import type { WorkAdventureDesktopApi } from "./types";
const api: WorkAdventureDesktopApi = {
desktop: true,
isDevelopment: () => ipcRenderer.invoke("is-development"),
notify: (txt: string) => ipcRenderer.send("app:notify", txt),
onMutedKeyPress: (callback: (event: IpcRendererEvent) => void) =>
ipcRenderer.on("app:on-muted-key-press", callback),