You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
517 B
19 lines
517 B
6 years ago
|
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')
|
||
|
}
|