From 084a73f88ee5ec6523d35d707475f54c04d63763 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 23 Apr 2018 18:33:51 +0300 Subject: [PATCH] enable nnvoting via argv --- main.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 2bae85d..b0d61cf 100644 --- a/main.js +++ b/main.js @@ -290,17 +290,16 @@ function createWindow(status, hideLoadingWindow) { firstLoginPH: null, secondaryLoginPH: null, }; - mainWindow.nnVoteChain = 'VOTE2018'; mainWindow.checkStringEntropy = shepherd.checkStringEntropy; mainWindow.pinAccess = false; mainWindow.bip39 = bip39; - /*for (let i = 0; i < process.argv.length; i++) { + for (let i = 0; i < process.argv.length; i++) { if (process.argv[i].indexOf('nvote') > -1) { - console.log(`notary node elections chain ${process.argv[i].replace('nvote=', '')}`); - mainWindow.nnVoteChain = process.argv[i].replace('nvote=', ''); + console.log(`enable notary node elections ui`); + mainWindow.nnVoteChain = 'VOTE2018'; } - }*/ + } } else { mainWindow = new BrowserWindow({ width: 500,