mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Switching check for HAProxy'ied socket.io to dev instead of www. Thanks @anaconda!
This commit is contained in:
parent
9e17a2caed
commit
15c955282b
1 changed files with 2 additions and 2 deletions
|
@ -3867,9 +3867,9 @@
|
|||
} else if (force || !this.socket || !this.socket.socket.connected) {
|
||||
var server = window.location.protocol + '//' + window.location.hostname;
|
||||
var https = _.string.startsWith(window.location.protocol, 'https');
|
||||
var www = _.string.contains(window.location.href, 'www.newsblur.com');
|
||||
var dev = _.string.contains(window.location.href, 'dev.newsblur.com');
|
||||
var port = https ? 443 : 80;
|
||||
if (NEWSBLUR.Globals.debug || !www) {
|
||||
if (NEWSBLUR.Globals.debug || dev) {
|
||||
port = https ? 8889 : 8888;
|
||||
}
|
||||
this.socket = this.socket || io.connect(server, {
|
||||
|
|
Loading…
Add table
Reference in a new issue