From 44745d86acec00f59a50a21b84fa0c55abc2fee0 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 29 Oct 2015 20:50:10 -0700 Subject: [PATCH] Fix for Wii U browser Apparently it doesn't send the login cookie if you explicitly set the socket.io transports to prefer websockets. Magic. --- templates/useroptions.jade | 3 --- www/js/callbacks.js | 1 - www/js/util.js | 17 ----------------- 3 files changed, 21 deletions(-) diff --git a/templates/useroptions.jade b/templates/useroptions.jade index 4a427b1d..43feea92 100644 --- a/templates/useroptions.jade +++ b/templates/useroptions.jade @@ -49,9 +49,6 @@ mixin us-general p.text-danger Changing layouts may require refreshing to take effect. mixin rcheckbox("us-no-channelcss", "Ignore Channel CSS") mixin rcheckbox("us-no-channeljs", "Ignore Channel Javascript") - .col-sm-4 - .col-sm-8 - p#us-conninfo.text-info Connection Information: .clear mixin us-scripts diff --git a/www/js/callbacks.js b/www/js/callbacks.js index e598e93b..e89341b2 100644 --- a/www/js/callbacks.js +++ b/www/js/callbacks.js @@ -1138,7 +1138,6 @@ setupCallbacks = function() { } var opts = { - transports: ["websocket", "polling"], secure: chosenServer.secure }; diff --git a/www/js/util.js b/www/js/util.js index 899b5a6c..605c6a71 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -624,23 +624,6 @@ function showUserOptions() { $("#us-layout").val(USEROPTS.layout); $("#us-no-channelcss").prop("checked", USEROPTS.ignore_channelcss); $("#us-no-channeljs").prop("checked", USEROPTS.ignore_channeljs); - var conninfo = "Connection Information: " + - "Connected to " + IO_URL + " ("; - if (IO_V6) { - conninfo += "IPv6, "; - } else { - conninfo += "IPv4, "; - } - - if (IO_URL === IO_URLS["ipv4-ssl"] || IO_URL === IO_URLS["ipv6-ssl"]) { - conninfo += "SSL)"; - } else { - conninfo += "no SSL)"; - } - - conninfo += ". SSL is enabled by default if it is supported by the server."; - $("#us-conninfo").html(conninfo); - $("#us-synch").prop("checked", USEROPTS.synch); $("#us-synch-accuracy").val(USEROPTS.sync_accuracy);