Updated MeshCentral Assistant.

This commit is contained in:
Ylian Saint-Hilaire 2021-08-28 22:27:00 -07:00
parent 900c470c15
commit decd507ac8
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -9333,7 +9333,9 @@
function p13gotFiles(data) {
if ((data.length > 0) && (data.charCodeAt(0) != 123)) { p13gotDownloadBinaryData(data); return; } // This is ok because 4 first bytes is a control value.
//console.log('p13gotFiles', data);
try { data = JSON.parse(decode_utf8(data)); } catch (ex) { data = JSON.parse(data); }
try { data = JSON.parse(decode_utf8(data)); } catch (ex) {
try { data = JSON.parse(data); } catch (ex) { console.log('Unable to parse: ' + data); return; }
}
if (data.action == 'download') { p13gotDownloadCommand(data); return; }
// Find file result