исправление обращения по https

This commit is contained in:
Alexey Kasyanchuk
2017-01-15 16:52:06 +03:00
parent 8b7bd11a1e
commit 072a40d3e1

View File

@ -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';