initial commit
This commit is contained in:
6
preload.js
Normal file
6
preload.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const { contextBridge, shell } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
// Expose a function to open a URL externally
|
||||
openExternalLink: (url) => shell.openExternal(url)
|
||||
});
|
||||
Reference in New Issue
Block a user