1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Worked on meshcore.js minification.

This commit is contained in:
Ylian Saint-Hilaire 2022-01-16 13:37:26 -08:00
parent 169a198efb
commit c029a82ae6
3 changed files with 5175 additions and 250 deletions

View file

@ -1675,7 +1675,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
command.image = images[0].image;
} else {
// Send back the default image if required
if (command.default) {
if ((command.default) || (command.sentDefault)) {
try { command.image = 'data:image/png;base64,' + Buffer.from(parent.fs.readFileSync(parent.parent.path.join(__dirname, 'public', 'images', 'user-128.png')), 'binary').toString('base64'); } catch (ex) { }
}
}