Fixed welcome image not working in config.json

Ylian Saint-Hilaire committed Sep 26, 2019 at 10:16 UTC 465d5345cb284c18cbac03c36efa2f803de24d55
2 files changed +4 -1
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.4.1-h",
3 + "version": "0.4.1-i",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",
webserver.js
+3
@@ -1890,6 +1890,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
1890 res.send(parent.configurationFiles[domain.welcomepicture]);
1891 return;
1892 }
1893 +
1894 + // Use the configured logo picture
1895 + try { res.sendFile(obj.path.join(obj.parent.datapath, domain.welcomepicture)); return; } catch (ex) { }
1896 }
1897
1898 if (parent.webPublicOverridePath && obj.fs.existsSync(obj.path.join(obj.parent.webPublicOverridePath, 'images/mainwelcome.jpg'))) {