mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
WIP
This commit is contained in:
parent
96eccd2ecd
commit
7d9208e951
143 changed files with 1000 additions and 1008 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue