mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove fingerprintjs
This commit is contained in:
parent
c546f03906
commit
1846f1afcf
16 changed files with 24 additions and 1593 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
var syncPromise;
|
||||
|
||||
window.LocalSync = {
|
||||
return {
|
||||
|
||||
sync: function (options) {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events) {
|
||||
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events, localSync) {
|
||||
|
||||
function initSupporterInfo(view, params) {
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
if (isLocalSyncManagement()) {
|
||||
|
||||
var status = LocalSync.getSyncStatus();
|
||||
var status = localSync.getSyncStatus();
|
||||
|
||||
page.querySelector('.labelSyncStatus').innerHTML = Globalize.translate('LabelLocalSyncStatusValue', status);
|
||||
if (status == 'Active') {
|
||||
|
@ -58,7 +58,7 @@
|
|||
|
||||
function syncNow(page) {
|
||||
|
||||
LocalSync.sync();
|
||||
localSync.sync();
|
||||
require(['toast'], function (toast) {
|
||||
toast(Globalize.translate('MessageSyncStarted'));
|
||||
});
|
||||
|
|
|
@ -424,7 +424,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
var timeText = datetime.getDisplayRunningTime(playState.PositionTicks);
|
||||
var timeText = playState.PositionTicks == null ? '--:--' : datetime.getDisplayRunningTime(playState.PositionTicks);
|
||||
|
||||
if (nowPlayingItem.RunTimeTicks) {
|
||||
|
||||
|
|
|
@ -1205,7 +1205,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function createMainContentHammer(Hammer) {
|
||||
|
||||
|
||||
var hammer = new Hammer(document.querySelector('.mainDrawerPanelContent'), null);
|
||||
return hammer;
|
||||
}
|
||||
|
@ -1432,7 +1432,6 @@ var AppInfo = {};
|
|||
define('fetch', [bowerPath + '/fetch/fetch']);
|
||||
define('objectassign', [embyWebComponentsBowerPath + '/objectassign']);
|
||||
define('native-promise-only', [bowerPath + '/native-promise-only/lib/npo.src']);
|
||||
define("fingerprintjs2", [bowerPath + '/fingerprintjs2/fingerprint2'], returnFirstDependency);
|
||||
define("clearButtonStyle", ['css!' + embyWebComponentsBowerPath + '/clearbutton']);
|
||||
define("userdataButtons", [embyWebComponentsBowerPath + "/userdatabuttons/userdatabuttons"], returnFirstDependency);
|
||||
define("listView", [embyWebComponentsBowerPath + "/listview/listview"], returnFirstDependency);
|
||||
|
@ -2773,6 +2772,7 @@ var AppInfo = {};
|
|||
|
||||
require(postInitDependencies);
|
||||
upgradeLayouts();
|
||||
initAutoSync();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2786,6 +2786,16 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
function initAutoSync() {
|
||||
require(['serverNotifications', 'events'], function (serverNotifications, events) {
|
||||
events.on(serverNotifications, 'SyncJobItemReady', function (e, apiClient, data) {
|
||||
require(['localsync'], function (localSync) {
|
||||
localSync.sync({});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
initRequire();
|
||||
|
||||
function onWebComponentsReady() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue