Browse Source

enable nnvoting via argv

custom-ac-example
pbca26 7 years ago
parent
commit
084a73f88e
  1. 9
      main.js

9
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,

Loading…
Cancel
Save