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:
parent
169a198efb
commit
c029a82ae6
3 changed files with 5175 additions and 250 deletions
|
@ -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) { }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue