24
1
Fork 0
drop.chapril.org-firefoxsend/server/routes/webmanifest.js

31 lines
690 B
JavaScript

const state = require('../state');
module.exports = async function(req, res) {
const appState = await state(req);
const manifest = {
name: 'Send',
short_name: 'Send',
lang: req.language,
icons: [
{
src: appState.ui.assets.android_chrome_192px,
type: 'image/png',
sizes: '192x192'
},
{
src: appState.ui.assets.android_chrome_512px,
type: 'image/png',
sizes: '512x512'
}
],
start_url: '/',
display: 'standalone',
orientation: 'portrait',
theme_color: '#220033',
background_color: 'white'
};
res.set('Content-Type', 'application/manifest+json');
res.json(manifest);
};