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:
parent
4e88835382
commit
923d53bb71
58 changed files with 65 additions and 26 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue