From e7a9ee07e02bcbe12264680d80dbaadee94a71fe Mon Sep 17 00:00:00 2001 From: yaofeng Date: Thu, 14 Jun 2018 13:11:42 +0800 Subject: [PATCH] update manifestFile setting --- ElectronNET.Host/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index f54b930..31eb482 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -83,14 +83,18 @@ function startAspCoreBackend(electronPort) { var text = data.toString(); console.log(`stdout: ${data.toString()}`); - if (data.toString().indexOf("MainWindowShowed") > -1 && loadingWindow && !loadingWindow.isDestroyed()) { + // yf add + if (text.indexOf(manifestFile.mainWindowShowed) > -1 && + loadingWindow && !loadingWindow.isDestroyed()) { loadingWindow.close(); - mainWindowId = parseInt(data.toString().replace("MainWindowShowed:", "").trim()) + + mainWindowId = parseInt(text.replace(`${manifestFile.mainWindowShowed}:`, "").trim()); } }); }); } +// yf add function startLoadingWindow() { let loadingUrl = manifestJsonFile.loadingUrl; let icon = manifestJsonFile.icon;