From 218b9515a716768c1a75935d398aae146f7a713a Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 20 Oct 2020 13:19:46 +0530 Subject: [PATCH] Add cloud plugin callback calls --- extra/js/drive.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/js/drive.js b/extra/js/drive.js index 840008c..168eac9 100644 --- a/extra/js/drive.js +++ b/extra/js/drive.js @@ -117,6 +117,8 @@ window.saveFile = function(filename) { res[filename] = 1; localforage.setItem(namespace, res); }); + + (window.saveCloudFile || (()=>{}))(filename, buf, b64); }; var loadFiles = function() { @@ -136,6 +138,8 @@ var loadFiles = function() { }); }); }); + + (window.loadCloudFiles || (()=>{}))(); } var createDummies = function() {