Skip to content

Commit

Permalink
v0.1.0-beta-bugfix-1
Browse files Browse the repository at this point in the history
  • Loading branch information
nameEO committed Oct 11, 2020
2 parents 9213c49 + 0e9268c commit 2fae771
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ window.toggleDevTools = function() {
}

window.reloadApp = function() {
getCurrentWindow().reload()
if (process.env.WEBPACK_DEV_SERVER_URL) {
getCurrentWebContents().reload()
} else {
getCurrentWindow().loadURL('app://./index.html')
}
}

window.readDiagramDirSync = async function(dirname) {
Expand Down

0 comments on commit 2fae771

Please sign in to comment.