Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove dead code from chat.js that tries to detect https since it can…

…'t work.
  • Loading branch information...
commit e3b3c1e418a4b0e4395fbb93329731c97d9bf9e2 1 parent 571978d
David Fowler davidfowl authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 JabbR/Chat.js
15 JabbR/Chat.js
View
@@ -935,21 +935,6 @@
});
}
- // Detect https for signalr traffic by requesting an image on the site via https.
- // If it fails, don't bother changing the url. Otherwise use the https url.
- // REVIEW: Should we do some caching?
- // var baseUrl = 'https://' + document.location.hostname + ':' + document.location.port + document.location.pathname;
- // var url = baseUrl + 'apple-touch-icon.png';
- // $.get(url)
- // .done(function (r) {
- // $.connection.hub.url = baseUrl + 'signalr';
- // initConnection();
- // })
- // .fail(function () {
- // initConnection();
- // });
-
- // TODO: Figure out how to detect if https is available
initConnection();
});
Please sign in to comment.
Something went wrong with that request. Please try again.