mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Fix array nesting
This commit is contained in:
@@ -39,8 +39,8 @@ EmbyItemRefreshIndicatorPrototype.createdCallback = function () {
|
||||
};
|
||||
|
||||
const serverId = dom.parentWithAttribute(this, 'data-serverid').getAttribute('data-serverid');
|
||||
this._wsUnsubscribers = ServerConnections.getApiClient(serverId)
|
||||
.subscribe([OutboundWebSocketMessageType.RefreshProgress], handler);
|
||||
this._wsUnsubscribers = [ServerConnections.getApiClient(serverId)
|
||||
.subscribe([OutboundWebSocketMessageType.RefreshProgress], handler)];
|
||||
};
|
||||
|
||||
EmbyItemRefreshIndicatorPrototype.attachedCallback = function () {
|
||||
|
||||
@@ -302,7 +302,7 @@ ItemsContainerPrototype.attachedCallback = function () {
|
||||
this._wsApiClientCreatedHandler = (e, newApiClient) => {
|
||||
this._wsUnsubscribers = (this._wsUnsubscribers ?? []).concat(subscribeToApiClient(newApiClient));
|
||||
};
|
||||
this._wsUnsubscribers = [subscribeToApiClient(ServerConnections.currentApiClient())];
|
||||
this._wsUnsubscribers = subscribeToApiClient(ServerConnections.currentApiClient());
|
||||
|
||||
addNotificationEvent(this, 'playbackstop', onPlaybackStopped, playbackManager);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user