update manifestFile setting

This commit is contained in:
yaofeng
2018-06-14 13:11:42 +08:00
parent 8e38c1f79d
commit e7a9ee07e0

View File

@@ -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;