From a77058de6192d44f19a99013a2ed62e147d9ced8 Mon Sep 17 00:00:00 2001 From: vitorsemeano Date: Sat, 16 Mar 2019 19:25:46 +0000 Subject: [PATCH] added NativeShell API to localsync module --- src/bower_components/emby-apiclient/sync/localsync.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bower_components/emby-apiclient/sync/localsync.js b/src/bower_components/emby-apiclient/sync/localsync.js index cea244de08..f2f5f4e9e3 100644 --- a/src/bower_components/emby-apiclient/sync/localsync.js +++ b/src/bower_components/emby-apiclient/sync/localsync.js @@ -3,6 +3,10 @@ define(["connectionManager"], function(connectionManager) { var isSyncing; return { 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) { require(["multiserversync", "appSettings"], function(MultiServerSync, appSettings) { options = options || {}, options.cameraUploadServers = appSettings.cameraUploadServers(), (new MultiServerSync).sync(connectionManager, options).then(function() {