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

remove most of Dashboard global window usage

This commit is contained in:
vitorsemeano 2020-10-12 23:08:55 +01:00
parent 4e88835382
commit 923d53bb71
58 changed files with 65 additions and 26 deletions

View file

@ -9,6 +9,7 @@ import 'resize-observer-polyfill';
import 'jellyfin-noto';
import '../assets/css/site.css';
import AppInfo from '../components/AppInfo';
import Dashboard from './clientUtils';
// TODO: Move this elsewhere
window.getWindowLocationSearch = function(win) {
@ -115,10 +116,9 @@ function initClient() {
console.debug('loading ApiClient singleton');
return Promise.all([
import('jellyfin-apiclient'),
import('./clientUtils')
import('jellyfin-apiclient')
])
.then(([{ ApiClient }, clientUtils]) => {
.then(([{ ApiClient }]) => {
console.debug('creating ApiClient singleton');
var apiClient = new ApiClient(Dashboard.serverAddress(), appHost.appName(), appHost.appVersion(), appHost.deviceName(), appHost.deviceId());