mirror of https://github.com/electron/electron
11 lines
335 B
JavaScript
11 lines
335 B
JavaScript
const exLinksBtn = document.getElementById('open-ex-links')
|
|
const fileManagerBtn = document.getElementById('open-file-manager')
|
|
|
|
fileManagerBtn.addEventListener('click', (event) => {
|
|
window.electronAPI.openHomeDir()
|
|
})
|
|
|
|
exLinksBtn.addEventListener('click', (event) => {
|
|
window.electronAPI.openExternal('https://electronjs.org')
|
|
})
|