1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix change requests and general formatting improvements

This commit is contained in:
MrTimscampi 2020-02-17 20:41:04 +01:00
parent e12e6731b2
commit f1fb59ec26
11 changed files with 74 additions and 74 deletions

View file

@ -68,6 +68,7 @@ define(["events", "appStorage"], function(events, appStorage) {
console.debug("ApiClient appVersion: " + appVersion);
console.debug("ApiClient deviceName: " + deviceName);
console.debug("ApiClient deviceId: " + deviceId);
this._serverInfo = {};
this._serverAddress = serverAddress;
this._deviceId = deviceId;
@ -165,9 +166,10 @@ define(["events", "appStorage"], function(events, appStorage) {
function setSocketOnClose(apiClient, socket) {
socket.onclose = function() {
console.debug("web socket closed");
apiClient._webSocket === socket;
console.debug("nulling out web socket");
apiClient._webSocket = null;
if (apiClient._webSocket === socket) {
console.debug("nulling out web socket");
apiClient._webSocket = null;
}
setTimeout(function() {
events.trigger(apiClient, "websocketclose")
}, 0)