webmanifest.js 668 B

12345678910111213141516171819202122232425262728
  1. const assets = require('../../common/assets');
  2. module.exports = function(req, res) {
  3. const manifest = {
  4. name: 'Firefox Send',
  5. short_name: 'Send',
  6. lang: req.language,
  7. icons: [
  8. {
  9. src: assets.get('android-chrome-192x192.png'),
  10. type: 'image/png',
  11. sizes: '192x192'
  12. },
  13. {
  14. src: assets.get('android-chrome-512x512.png'),
  15. type: 'image/png',
  16. sizes: '512x512'
  17. }
  18. ],
  19. start_url: '/',
  20. display: 'standalone',
  21. orientation: 'portrait',
  22. theme_color: '#220033',
  23. background_color: 'white'
  24. };
  25. res.set('Content-Type', 'application/manifest+json');
  26. res.json(manifest);
  27. };