mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Changing dev/debug host for socketio.
This commit is contained in:
parent
b4cc3b50b1
commit
26ffea927d
1 changed files with 4 additions and 2 deletions
|
@ -3867,9 +3867,11 @@
|
||||||
} else if (force || !this.socket || !this.socket.socket.connected) {
|
} else if (force || !this.socket || !this.socket.socket.connected) {
|
||||||
var server = window.location.protocol + '//' + window.location.hostname;
|
var server = window.location.protocol + '//' + window.location.hostname;
|
||||||
var https = _.string.startsWith(window.location.protocol, 'https');
|
var https = _.string.startsWith(window.location.protocol, 'https');
|
||||||
var dev = _.string.contains(window.location.href, 'dev.newsblur.com');
|
var local = NEWSBLUR.Globals.debug || _.any(['dev', 'debug'], function(hostname) {
|
||||||
|
return _.string.contains(window.location.host, hostname);
|
||||||
|
});
|
||||||
var port = https ? 443 : 80;
|
var port = https ? 443 : 80;
|
||||||
if (NEWSBLUR.Globals.debug || dev) {
|
if (local) {
|
||||||
port = https ? 8889 : 8888;
|
port = https ? 8889 : 8888;
|
||||||
}
|
}
|
||||||
this.socket = this.socket || io.connect(server, {
|
this.socket = this.socket || io.connect(server, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue