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
|
@ -171,7 +171,7 @@ export default function show (button) {
|
|||
});
|
||||
});
|
||||
|
||||
const apiClient = ConnectionManager.currentApiClient();
|
||||
const apiClient = window.ConnectionManager.currentApiClient();
|
||||
ConnectionManager.user(apiClient).then((user) => {
|
||||
if (syncPlayEnabled) {
|
||||
showLeaveGroupSelection(button, user, apiClient);
|
||||
|
|
|
@ -127,7 +127,7 @@ class SyncPlayManager {
|
|||
|
||||
// Report ping
|
||||
if (this.syncEnabled) {
|
||||
const apiClient = ConnectionManager.currentApiClient();
|
||||
const apiClient = window.ConnectionManager.currentApiClient();
|
||||
const sessionId = getActivePlayerId();
|
||||
|
||||
if (!sessionId) {
|
||||
|
|
|
@ -113,7 +113,7 @@ class TimeSyncManager {
|
|||
if (!this.poller) {
|
||||
this.poller = setTimeout(() => {
|
||||
this.poller = null;
|
||||
const apiClient = ConnectionManager.currentApiClient();
|
||||
const apiClient = window.ConnectionManager.currentApiClient();
|
||||
const requestSent = new Date();
|
||||
apiClient.getServerTime().then((response) => {
|
||||
const responseReceived = new Date();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue