mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Set the minimum server version to match the sdk
This commit is contained in:
parent
ac8c2239ca
commit
f980e38530
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import { MINIMUM_VERSION } from '@jellyfin/sdk/lib/versions';
|
||||
import { ConnectionManager, Credentials, ApiClient } from 'jellyfin-apiclient';
|
||||
|
||||
import { appHost } from './apphost';
|
||||
|
@ -33,6 +34,9 @@ class ServerConnections extends ConnectionManager {
|
|||
super(...arguments);
|
||||
this.localApiClient = null;
|
||||
|
||||
// Set the apiclient minimum version to match the SDK
|
||||
this._minServerVersion = MINIMUM_VERSION;
|
||||
|
||||
Events.on(this, 'localusersignedout', (_e, logoutInfo) => {
|
||||
setUserInfo(null, null);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue