From 91f066ae61a1cd715616b8af3d28ede23521dc61 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Fri, 13 Jan 2017 01:09:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B4=D0=B0=D0=BA=D1=88?= =?UTF-8?q?=D0=BD=20=D0=BD=D0=B0=20=D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=D0=BC=20=D0=BF=D0=BE=D1=80=D1=82=D0=B5?= 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 d8fd74a..f10aeed 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 + ':8095/'); +window.torrentSocket = io('http://' + document.location.hostname + (process.env.NODE_ENV === 'production' ? '/' : ':8095/')); import injectTapEventPlugin from 'react-tap-event-plugin';