Files
snapcad-studio/apps/desktop/preload.cjs
T

7 lines
342 B
JavaScript
Raw Normal View History

const { contextBridge, ipcRenderer } = require("electron");
contextBridge.exposeInMainWorld("sketchforgeDesktop", {
getVersion: () => ipcRenderer.invoke("sketchforge:get-version"),
checkForUpdates: () => ipcRenderer.invoke("sketchforge:check-for-updates"),
installUpdate: () => ipcRenderer.invoke("sketchforge:install-update"),
});