Prefix base64 image data

This commit is contained in:
Johannes Zellner
2020-11-11 11:24:20 +01:00
parent 7e16128b11
commit 751caa7b3b

View File

@@ -56,7 +56,7 @@ function loginPage(req, res, next) {
const title = app.label || app.manifest.title;
apps.getIconPath(app, {}, function (error, iconPath) {
const icon = safe.fs.readFileSync(iconPath || '', 'base64');
const icon = 'data:image/png;base64,' + safe.fs.readFileSync(iconPath || '', 'base64');
return res.render(path.join(paths.DASHBOARD_DIR, 'templates/proxyauth-login.ejs'), { title, icon });
});