Browse Source

Recover auth code

v2
Xose Pérez 6 years ago
parent
commit
f58f625303
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      code/html/custom.js

+ 0
- 4
code/html/custom.js View File

@ -1436,14 +1436,12 @@ function connectToURL(url) {
initUrls(url); initUrls(url);
/*
$.ajax({ $.ajax({
'method': 'GET', 'method': 'GET',
'crossDomain': true, 'crossDomain': true,
'url': urls.auth.href, 'url': urls.auth.href,
'xhrFields': { 'withCredentials': true } 'xhrFields': { 'withCredentials': true }
}).done(function(data) { }).done(function(data) {
*/
if (websock) { websock.close(); } if (websock) { websock.close(); }
websock = new WebSocket(urls.ws.href); websock = new WebSocket(urls.ws.href);
websock.onmessage = function(evt) { websock.onmessage = function(evt) {
@ -1452,11 +1450,9 @@ function connectToURL(url) {
processData(data); processData(data);
} }
}; };
/*
}).fail(function() { }).fail(function() {
// Nothing to do, reload page and retry // Nothing to do, reload page and retry
}); });
*/
} }


Loading…
Cancel
Save