[logo] fix missing logo in email

This commit is contained in:
Andrea 2022-02-12 17:38:12 +01:00
parent 43498b5bc5
commit 80f5a9b42f
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ const Suml = require('suml');
const forbidden = require('./forbidden');
const color = '#C71585';
const logo = fs.readFileSync(__dirname + '/../node_modules/@fortawesome/fontawesome-pro/svgs/light/tags.svg').toString('utf-8');
const logoEncoded = 'data:image/svg+xml,' + encodeURIComponent(logo.replace('<path ', `<path fill="${color}" `));
const logo = fs.readFileSync(__dirname + '/../static/logo/logo-primary.svg').toString('utf-8');
const logoEncoded = 'data:image/svg+xml,' + encodeURIComponent(logo);
const loadSuml = name => new Suml().parse(fs.readFileSync(`${__dirname}/../data/${name}.suml`).toString());
const translations = loadSuml('translations');