diff --git a/Scripts/AppLoader.js b/Scripts/AppLoader.js index 12be67adb..46acd4120 100644 --- a/Scripts/AppLoader.js +++ b/Scripts/AppLoader.js @@ -57,6 +57,7 @@ function newAppLoader() { "Files/DailyFiles.js", "Files/FileCursor.js", "Files/FileSequence.js", + "Files/FileStorage.js", "FloatingSpace/NoteSets.js", "FloatingSpace/Note.js", diff --git a/Scripts/AppPreLoader.js b/Scripts/AppPreLoader.js index c8a3bdf8a..7bdd2810a 100644 --- a/Scripts/AppPreLoader.js +++ b/Scripts/AppPreLoader.js @@ -138,48 +138,6 @@ function callServer(pContentToSend, pPath, callBackFunction) { } -function newFileStorage() { - thisObject = { - getBlobToText: getBlobToText - }; - - return thisObject; - - function getBlobToText(pContainerName, pPath, callBackFunction) { - - let xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState === 4 && this.status === 200) { - - let response = JSON.parse(xhttp.responseText); - callBackFunction(response.err, response.text, ""); - - } - }; - - try { - - let request = { - conatinerName: pContainerName, - path: pPath - }; - - request = JSON.stringify(request); - - let path = "FileService"; - - let blob = new Blob([request], { type: 'text/plain' }); - - xhttp.open("POST", path, true); - xhttp.send(blob); - - } catch (err) { - - if (ERROR_LOG === true) { console.log(spacePad(MODULE_NAME, 50) + " : " + "[ERROR] getBlobToText -> err.message = " & err.message); } - - } - } -}