Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
refresh 안되는 현상 수정
  • Loading branch information
nameEO committed Oct 11, 2020
1 parent 9213c49 commit 0e9268c
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 0e9268c

Please sign in to comment.