Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Nov 24, 2023
1 parent a8c78fd commit 1ab8982
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sample-midi-piano/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
`npm install`

## Run
`electron .`
`electron .`
or
`npm start`

## Package
`npm run make`
Expand Down
4 changes: 3 additions & 1 deletion sample-midi-player/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
`npm install`

## Run
`electron .`
`electron .`
or
`npm start`

## Package
`npm run make`
Expand Down
2 changes: 1 addition & 1 deletion sample-midi-player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function createWindow () {
function openFile() {
dialog.showOpenDialog({
properties: ['openFile'],
filters: [{ name: 'MIDI Files', extensions: ['mid', 'midi', 'kar', 'rmi'] }, { name: 'All Files', extensions: ['*'] }]
filters: [{ name: 'MIDI Files', extensions: ['mid', 'midi', 'midi2', 'kar', 'rmi'] }, { name: 'All Files', extensions: ['*'] }]
}).then(function(result) {
if (result.filePaths && result.filePaths[0]) {
fs.readFile(result.filePaths[0], 'binary', (err, data) => {
Expand Down

0 comments on commit 1ab8982

Please sign in to comment.