From 0e9268c8defe831b3c2f15c5d6fbb989c469f87b Mon Sep 17 00:00:00 2001 From: nameEO Date: Sun, 11 Oct 2020 23:59:50 +0900 Subject: [PATCH] bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refresh 안되는 현상 수정 --- src/preload.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/preload.js b/src/preload.js index 774c727..f842d87 100644 --- a/src/preload.js +++ b/src/preload.js @@ -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) {