mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
added NativeShell API to localsync module
This commit is contained in:
parent
e39d364874
commit
a77058de61
@ -3,6 +3,10 @@ define(["connectionManager"], function(connectionManager) {
|
|||||||
var isSyncing;
|
var isSyncing;
|
||||||
return {
|
return {
|
||||||
sync: function(options) {
|
sync: function(options) {
|
||||||
|
if (window.NativeShell) {
|
||||||
|
return window.NativeShell.sync(options);
|
||||||
|
}
|
||||||
|
|
||||||
return console.log("localSync.sync starting..."), isSyncing ? Promise.resolve() : (isSyncing = !0, new Promise(function(resolve, reject) {
|
return console.log("localSync.sync starting..."), isSyncing ? Promise.resolve() : (isSyncing = !0, new Promise(function(resolve, reject) {
|
||||||
require(["multiserversync", "appSettings"], function(MultiServerSync, appSettings) {
|
require(["multiserversync", "appSettings"], function(MultiServerSync, appSettings) {
|
||||||
options = options || {}, options.cameraUploadServers = appSettings.cameraUploadServers(), (new MultiServerSync).sync(connectionManager, options).then(function() {
|
options = options || {}, options.cameraUploadServers = appSettings.cameraUploadServers(), (new MultiServerSync).sync(connectionManager, options).then(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user