mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix currentApiClient references
This commit is contained in:
parent
8bc8255a3e
commit
54d71126d9
11 changed files with 14 additions and 14 deletions
|
@ -21,7 +21,7 @@ class BackdropScreensaver {
|
|||
Limit: 200
|
||||
};
|
||||
|
||||
const apiClient = ConnectionManager.currentApiClient();
|
||||
const apiClient = window.ConnectionManager.currentApiClient();
|
||||
apiClient.getItems(apiClient.getCurrentUserId(), query).then((result) => {
|
||||
if (result.Items.length) {
|
||||
import('../../components/slideshow/slideshow').then(({default: Slideshow}) => {
|
||||
|
|
|
@ -328,7 +328,7 @@ class CastPlayer {
|
|||
} else if (message.options && message.options.items && message.options.items.length) {
|
||||
apiClient = ConnectionManager.getApiClient(message.options.items[0].ServerId);
|
||||
} else {
|
||||
apiClient = ConnectionManager.currentApiClient();
|
||||
apiClient = window.ConnectionManager.currentApiClient();
|
||||
}
|
||||
|
||||
message = Object.assign(message, {
|
||||
|
|
|
@ -13,7 +13,7 @@ export default class PhotoPlayer {
|
|||
import('../../components/slideshow/slideshow').then(({default: Slideshow}) => {
|
||||
var index = options.startIndex || 0;
|
||||
|
||||
var apiClient = ConnectionManager.currentApiClient();
|
||||
var apiClient = window.ConnectionManager.currentApiClient();
|
||||
apiClient.getCurrentUser().then(function(result) {
|
||||
var newSlideShow = new Slideshow({
|
||||
showTitle: false,
|
||||
|
|
|
@ -56,7 +56,7 @@ function getCurrentApiClient(instance) {
|
|||
return ConnectionManager.getApiClient(currentServerId);
|
||||
}
|
||||
|
||||
return ConnectionManager.currentApiClient();
|
||||
return window.ConnectionManager.currentApiClient();
|
||||
}
|
||||
|
||||
function sendCommandByName(instance, name, options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue