From 85127be49e39c95233f4d77e3be950703ca9879d Mon Sep 17 00:00:00 2001 From: yaofeng Date: Mon, 16 Jul 2018 14:07:51 +0800 Subject: [PATCH] config --- ElectronNET.Host/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index cf63b5d..b3d8550 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -141,10 +141,10 @@ function activeCountDowInterval(manifestJsonFile) { clearInterval(countDownInterval); dialog.showMessageBox(loadingWindow, { - type: 'error', - buttons: ["前往安装"], - title: '文件缺失提示', - message: '计算机缺少组件无法启动该程序,点击前往安装组件后重试', + type: manifestJsonFile.timeout.messageBox.type || 'error', + buttons: manifestJsonFile.timeout.messageBox.buttons || ["前往安装"], + title: manifestJsonFile.timeout.messageBox.title || '文件缺失提示', + message: manifestJsonFile.timeout.messageBox.message || '计算机缺少组件无法启动该程序,点击前往安装组件后重试', }, (res, isChecked) => { if (manifestJsonFile.timeout.help) shell.openExternal(manifestJsonFile.timeout.help)