Merge remote-tracking branch 'Superalgos/develop' into develop
This commit is contained in:
commit
34fe118ecc
2 files changed
+1
-42
No files matched your search
@@ -57,6 +57,7 @@ function newAppLoader() {
|
||||
"Files/DailyFiles.js",
|
||||
"Files/FileCursor.js",
|
||||
"Files/FileSequence.js",
|
||||
"Files/FileStorage.js",
|
||||
|
||||
"FloatingSpace/NoteSets.js",
|
||||
"FloatingSpace/Note.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); }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user