diff --git a/main.js b/main.js index 5702d29..8e197de 100644 --- a/main.js +++ b/main.js @@ -293,6 +293,7 @@ function createWindow(status, hideLoadingWindow) { mainWindow.checkStringEntropy = shepherd.checkStringEntropy; mainWindow.pinAccess = false; mainWindow.bip39 = bip39; + mainWindow.isWatchOnly = shepherd.isWatchOnly; for (let i = 0; i < process.argv.length; i++) { if (process.argv[i].indexOf('nvote') > -1) { diff --git a/routes/shepherd.js b/routes/shepherd.js index f6ec72d..c5dbd52 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -37,6 +37,7 @@ shepherd.rpcConf = {}; shepherd.appRuntimeLog = []; shepherd.appRuntimeSPVLog = []; shepherd.lockDownAddCoin = false; +shepherd.isWatchOnly = false; // dex cache shepherd.mmupass = null; diff --git a/routes/shepherd/auth.js b/routes/shepherd/auth.js index 44c7516..b889b85 100644 --- a/routes/shepherd/auth.js +++ b/routes/shepherd/auth.js @@ -59,5 +59,9 @@ module.exports = (shepherd) => { return passwdStrength(str) < 29 ? false : true; }; + shepherd.isWatchOnly = () => { + return shepherd.isWatchOnly; + }; + return shepherd; }; \ No newline at end of file