diff options
-rw-r--r-- | package.json | 3 | ||||
-rw-r--r-- | public/scripts/chat.js | 2 | ||||
-rw-r--r-- | src/server.js | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/package.json b/package.json index 49ad0db..d82a3be 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "dev": "nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\" & npm run watch", "watch": "npm run build && onchange public/styles/* -- npm run css & watchify public/scripts/*.js -o dist/app.js -v", "css": "node-sass public/styles/main.sass dist/app.css --output-style compressed", - "build": "rm -r dist/* && npm run css && browserify public/scripts/*.js -o dist/app.js && cp public/additional/* dist/", - "server": "node src/server.js" + "build": "rm -r dist/* && npm run css && browserify public/scripts/*.js -o dist/app.js && cp public/additional/* dist/" }, "keywords": [ "express", diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 5e577f2..b50ec81 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -3,10 +3,10 @@ const encryption = require('./2_encryption'); const wordList = require('./3_wordlist'); const xkcdPassword = require('xkcd-password'); +const host = '127.0.0.1'; let peerId; let connectedPeer; let connectedPeers = []; // TODO: Save new peers in array -const host = 'meta.marvinborner.de'; const generator = new xkcdPassword(); generator.initWithWordList(wordList); diff --git a/src/server.js b/src/server.js deleted file mode 100644 index d9dda79..0000000 --- a/src/server.js +++ /dev/null @@ -1,2 +0,0 @@ -const PeerServer = require('peer').PeerServer; -PeerServer({port: 4242, path: '/'}); |