1
0
Fork 0
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:
grafixeyehero 2021-06-14 03:19:22 +03:00
parent 4062544e50
commit d0f6faea11
3 changed files with 5 additions and 3 deletions

View file

@ -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);