1const {dialog} = require('electron').remote;
2
3document.querySelector('#selectBtn').addEventListener('click', function (event) {
4 dialog.showOpenDialog({
5 properties: ['openFile', 'multiSelections']
6 }, function (files) {
7 if (files !== undefined) {
8 // handle files
9 }
10 });
11});
12