2019-12-04 06:38:19 +00:00
|
|
|
const { shell } = require('electron')
|
|
|
|
const os = require('os')
|
|
|
|
|
|
|
|
const exLinksBtn = document.getElementById('open-ex-links')
|
|
|
|
const fileManagerBtn = document.getElementById('open-file-manager')
|
|
|
|
|
|
|
|
fileManagerBtn.addEventListener('click', (event) => {
|
|
|
|
shell.showItemInFolder(os.homedir())
|
|
|
|
})
|
|
|
|
|
|
|
|
exLinksBtn.addEventListener('click', (event) => {
|
2020-02-17 00:46:41 +00:00
|
|
|
shell.openExternal('https://electronjs.org')
|
2019-12-04 06:38:19 +00:00
|
|
|
})
|