From 072a40d3e1cd001a3980d31635f6e1a5d6be5cb4 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sun, 15 Jan 2017 16:52:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=20https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 3f0d7bd..65b1ead 100644 --- a/src/app.js +++ b/src/app.js @@ -4,7 +4,7 @@ import './router'; import PagesPie from './pages-pie.js'; var io = require("socket.io-client"); -window.torrentSocket = io('http://' + document.location.hostname + (process.env.NODE_ENV === 'production' ? '/' : ':8095/')); +window.torrentSocket = io(document.location.protocol + '//' + document.location.hostname + (process.env.NODE_ENV === 'production' ? '/' : ':8095/')); import injectTapEventPlugin from 'react-tap-event-plugin';