Prepping editor.

This commit is contained in:
2023-06-25 20:58:47 -07:00
parent 216fb5cbf7
commit 2065de8492
23 changed files with 352 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import { contextBridge, ipcRenderer } from 'electron';
const API_HANDLERS = [
"vnscene:test"
];
contextBridge.exposeInMainWorld(
'dawnapi',
API_HANDLERS.reduce((acc, key) => {
acc[key] = (...args:any) => ipcRenderer.invoke(key, ...args);
return acc;
}, {} as {[key:string]:()=>any})
);