WIP
This commit is contained in:
committed by
vitorsemeano
parent
96eccd2ecd
commit
7d9208e951
@@ -3,8 +3,7 @@
|
||||
* @module components/syncPlay/timeSyncManager
|
||||
*/
|
||||
|
||||
import events from 'jellyfin-apiclient';
|
||||
import connectionManager from 'jellyfin-apiclient';
|
||||
import { ConnectionManager, events } from 'jellyfin-apiclient';
|
||||
|
||||
/**
|
||||
* Time estimation
|
||||
@@ -114,7 +113,7 @@ class TimeSyncManager {
|
||||
if (!this.poller) {
|
||||
this.poller = setTimeout(() => {
|
||||
this.poller = null;
|
||||
const apiClient = window.connectionManager.currentApiClient();
|
||||
const apiClient = ConnectionManager.currentApiClient();
|
||||
const requestSent = new Date();
|
||||
apiClient.getServerTime().then((response) => {
|
||||
const responseReceived = new Date();
|
||||
|
||||
Reference in New Issue
Block a user