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

Pass ApiClientFactory instead of API client module

This commit is contained in:
MrTimscampi 2020-05-02 21:40:43 +02:00
parent 4dc7be9422
commit 8e337da01d
2 changed files with 6 additions and 2 deletions

View file

@ -288,10 +288,10 @@ var AppInfo = {};
if (!AppInfo.isNativeApp) {
console.debug("loading ApiClient singleton");
return require(["apiclient"], function (apiClientModule) {
return require(["apiclient"], function (apiClientFactory) {
console.debug("creating ApiClient singleton");
var apiClient = new apiClientModule.ApiClient(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId());
var apiClient = new apiClientFactory(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId());
apiClient.enableAutomaticNetworking = false;
apiClient.manualAddressOnly = true;