Permalink
Browse files

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

…'t work.
  • Loading branch information...
1 parent 571978d commit e3b3c1e418a4b0e4395fbb93329731c97d9bf9e2 @davidfowl davidfowl committed May 20, 2012
Showing with 0 additions and 15 deletions.
  1. +0 −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();
});

0 comments on commit e3b3c1e

Please sign in to comment.