From 83396675e6f7d3a60e4a14395f3fdaf0838ebe44 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Wed, 31 Dec 2014 20:44:51 -0600 Subject: [PATCH] * remove a diagnostic from javascript --- web/app/assets/javascripts/JamServer.js | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/web/app/assets/javascripts/JamServer.js b/web/app/assets/javascripts/JamServer.js index f60ea07d0..73997c0a7 100644 --- a/web/app/assets/javascripts/JamServer.js +++ b/web/app/assets/javascripts/JamServer.js @@ -321,23 +321,15 @@ lastDisconnectedReason = 'WEBSOCKET_CLOSED_LOCALLY' } - rest.createDiagnostic({ - type: lastDisconnectedReason, - data: {logs: logger.logCache, client_type: clientType, client_id: server.clientID, channel_id: channelId} - }) - .always(function() { - if ($currentDisplay.is('.no-websocket-connection')) { - // this path is the 'not in session path'; so there is nothing else to do - $currentDisplay.removeClass('active'); - - // TODO: tell certain elements that we've reconnected - } - else { - window.location.reload(); - } - }); - + if ($currentDisplay.is('.no-websocket-connection')) { + // this path is the 'not in session path'; so there is nothing else to do + $currentDisplay.removeClass('active'); + // TODO: tell certain elements that we've reconnected + } + else { + window.location.reload(); + } } function buildOptions() {