Skip to content

Commit

Permalink
fix(show-me): use BrowserWindow.loadFile in dialog example (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed May 10, 2024
1 parent 8b4077f commit dc7149a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/show-me/dialog/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.whenReady().then(async () => {
console.log('Dialog was canceled')
} else {
const file = filePaths[0]
mainWindow.loadURL(`file://${file}`)
mainWindow.loadFile(file)
}
} catch (err) {
console.log(err)
Expand Down

0 comments on commit dc7149a

Please sign in to comment.