7b28cd33cb
* docs: Added Native User Interface -> Open path in file manager Fiddle example from electron-api-demos * removed classname from button
8 lines
229 B
JavaScript
8 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())
|
|
})
|