aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 20:50:53 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 20:50:53 +0000
commitfd1163670d72bfb799c63c0b6dc110ea0fbe6dda (patch)
tree5854122befac72b02b89d5aa268755800a2d5d69
parent9981ad629449ee1adfa930cd86b121963f511659 (diff)
downloadsql-plus-plus-fd1163670d72bfb799c63c0b6dc110ea0fbe6dda.tar.xz
sql-plus-plus-fd1163670d72bfb799c63c0b6dc110ea0fbe6dda.zip
Obfuscaste saved connection config
-rw-r--r--main.js8
1 files 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();
}