9 lines
229 B
JavaScript
9 lines
229 B
JavaScript
|
const { shell } = require('electron')
|
||
|
const os = require('os')
|
||
|
|
||
|
const fileManagerBtn = document.getElementById('open-file-manager')
|
||
|
|
||
|
fileManagerBtn.addEventListener('click', (event) => {
|
||
|
shell.showItemInFolder(os.homedir())
|
||
|
})
|