first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
// Expose protected methods that allow the renderer process to use
|
||||
// ipcRenderer without exposing the entire object
|
||||
contextBridge.exposeInMainWorld('electron', {
|
||||
isElectron: true,
|
||||
getAppInfo: () => ipcRenderer.invoke('get-app-info'),
|
||||
});
|
||||
Reference in New Issue
Block a user