mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
register on app init
This commit is contained in:
parent
4062544e50
commit
d0f6faea11
3 changed files with 5 additions and 3 deletions
|
@ -36,6 +36,7 @@ import { playbackManager } from '../components/playback/playbackmanager';
|
|||
import SyncPlayNoActivePlayer from '../components/syncPlay/ui/players/NoActivePlayer';
|
||||
import SyncPlayHtmlVideoPlayer from '../components/syncPlay/ui/players/HtmlVideoPlayer';
|
||||
import SyncPlayHtmlAudioPlayer from '../components/syncPlay/ui/players/HtmlAudioPlayer';
|
||||
import taskButton from '../scripts/taskbutton';
|
||||
|
||||
// TODO: Move this elsewhere
|
||||
window.getWindowLocationSearch = function(win) {
|
||||
|
@ -82,6 +83,10 @@ function loadCoreDictionary() {
|
|||
}
|
||||
|
||||
function init() {
|
||||
// This is used in plugins
|
||||
window.events = Events;
|
||||
window.TaskButton = taskButton;
|
||||
|
||||
serverAddress().then(server => {
|
||||
if (server) {
|
||||
ServerConnections.initApiClient(server);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue