Skip to content

Commit

Permalink
fix: prefer webmanifest extension over json
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Sep 28, 2020
1 parent 4c1e717 commit 46800b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/meta/tags.js
Expand Up @@ -55,7 +55,7 @@ Tags.parse = async (req, data, meta, link) => {
href: nconf.get('relative_path') + nconf.get('upload_url') + '/system/favicon.ico' + (Meta.config['cache-buster'] ? '?' + Meta.config['cache-buster'] : ''),
}, {
rel: 'manifest',
href: nconf.get('relative_path') + '/manifest.json',
href: nconf.get('relative_path') + '/manifest.webmanifest',
}];

if (plugins.hasListeners('filter:search.query')) {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/meta.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function (app, middleware, controllers) {
app.get('/sitemap/categories.xml', controllers.sitemap.getCategories);
app.get(/\/sitemap\/topics\.(\d+)\.xml/, controllers.sitemap.getTopicPage);
app.get('/robots.txt', controllers.robots);
app.get('/manifest.json', controllers.manifest);
app.get('/manifest.webmanifest', controllers.manifest);
app.get('/css/previews/:theme', controllers.admin.themes.get);
app.get('/osd.xml', controllers.osd.handle);
};

0 comments on commit 46800b6

Please sign in to comment.