* remove a diagnostic from javascript

This commit is contained in:
Seth Call 2014-12-31 20:44:51 -06:00
parent 116cf8cfce
commit 83396675e6
1 changed files with 8 additions and 16 deletions

View File

@ -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() {