4 changed files with 42 additions and 15 deletions
@ -0,0 +1,18 @@ |
|||||
|
const { shell } = require('electron') |
||||
|
|
||||
|
init() |
||||
|
|
||||
|
function init() { |
||||
|
// Expose a bridging API to by setting an global on `window`.
|
||||
|
//
|
||||
|
// !CAREFUL! do not expose any functionality or APIs that could compromise the
|
||||
|
// user's computer. E.g. don't directly expose core Electron (even IPC) or node.js modules.
|
||||
|
window.Zap = { |
||||
|
openHelpPage |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// Open the help page in a new browser window,.
|
||||
|
function openHelpPage() { |
||||
|
shell.openExternal('https://ln-zap.github.io/zap-tutorials/zap-desktop-getting-started') |
||||
|
} |
Loading…
Reference in new issue