Add ability to change the branding

This commit is contained in:
Marian Hähnlein 2022-04-12 15:58:58 +02:00
parent 81741dcc76
commit 560747106b
No known key found for this signature in database
GPG key ID: B43047632CA1D3D6
28 changed files with 275 additions and 201 deletions

View file

@ -1,18 +1,20 @@
const assets = require('../../common/assets');
const state = require('../state');
module.exports = async function(req, res) {
const appState = await state(req);
module.exports = function(req, res) {
const manifest = {
name: 'Send',
short_name: 'Send',
lang: req.language,
icons: [
{
src: assets.get('android-chrome-192x192.png'),
src: appState.ui.assets.android_chrome_192px,
type: 'image/png',
sizes: '192x192'
},
{
src: assets.get('android-chrome-512x512.png'),
src: appState.ui.assets.android_chrome_512px,
type: 'image/png',
sizes: '512x512'
}