From 5abc62e8657e70c405afa175e52c73316d8a53a2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 24 Jan 2019 17:22:12 +0100 Subject: Added alasql database and pgp worker --- public/scripts/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/scripts/chat.js') diff --git a/public/scripts/chat.js b/public/scripts/chat.js index a31173e..ec27a11 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -2,12 +2,12 @@ const $ = require('jquery'); const encryption = require('./2_encryption'); const nanoid = require('nanoid'); -let connectedPeers = []; +let connectedPeers = []; // TODO: Save new peers in array let connectedPeer; const peerId = nanoid(); // setup encryption -if (encryption.check()) { +if (encryption.setup() && encryption.check()) { // TODO: Ask for password chat(); } else { -- cgit v1.2.3