2023-08-28 11:23:10 +00:00
|
|
|
const { shell } = require('electron/renderer')
|
2023-07-17 08:30:53 +00:00
|
|
|
const os = require('node:os')
|
2020-08-27 14:31:51 +00:00
|
|
|
|
|
|
|
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) => {
|
|
|
|
shell.openExternal('https://electronjs.org')
|
2019-12-04 06:38:19 +00:00
|
|
|
})
|