Skip to content

Commit

Permalink
There's probably some better place to do this, but this check prevent…
Browse files Browse the repository at this point in the history
…s non-https connections from blowing up startup.
  • Loading branch information
sstrang committed Nov 11, 2015
1 parent 4ed1fe2 commit 6bd26c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function getServerAddresses(requests_url, plex_token, callback) {
for (var j = 0; j < connections.length; j++) {
var connection = connections[j];
var uri = connection.hasAttribute("uri") ? connection.getAttribute("uri") : window.location.protocol + "//" + connection.getAttribute("address") + ":" + connection.getAttribute("port");
if (uri.indexOf("https") < 0) {
continue;
}
var local = !connection.hasAttribute("uri") || connection.getAttribute("local") == 1;
task_counter += 1;
(function (machine_identifier, name, uri, access_token, local) {
Expand Down

0 comments on commit 6bd26c7

Please sign in to comment.