From fd1163670d72bfb799c63c0b6dc110ea0fbe6dda Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sun, 25 Feb 2018 20:50:53 +0000 Subject: Obfuscaste saved connection config --- main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 08b49be..e7f0e44 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,11 @@ const url = require("url"); const Store = require("electron-store"); const uuid = require('uuid/v1'); -const connectionStore = new Store(); +const connectionStore = new Store({ + name: "connections", + encryptionKey: "just-for-obfuscation-purposes" +}); + let uiWindow; let newConnectionDialog; let queryExecutors = []; @@ -145,7 +149,7 @@ function restoreSavedConnections() { console.log(connection[1]); createQueryExecutor(connection[1]); } - + if (connectionStore.size === 0) { createNewConnectionDialog(); } -- cgit v1.2.3