Merge remote-tracking branch 'Superalgos/develop' into develop

This commit is contained in:
Matias committed 2019-04-10 00:51:06 +02:00
commit 34fe118ecc
2 files changed
+1 -42

No files matched your search

+1
View File
@@ -57,6 +57,7 @@ function newAppLoader() {
"Files/DailyFiles.js",
"Files/FileCursor.js",
"Files/FileSequence.js",
"Files/FileStorage.js",
"FloatingSpace/NoteSets.js",
"FloatingSpace/Note.js",
-42
View File
@@ -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); }
}
}
}