1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-04 05:08:06 +02:00

app id to json extension

This commit is contained in:
Kyle Spearrin 2017-06-27 13:51:32 -04:00
parent 742d7240f7
commit 06d53d350d
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ gulp.task('dist:move', function () {
paths.webroot + 'index.html', paths.webroot + 'index.html',
paths.webroot + 'u2f-connector.html', paths.webroot + 'u2f-connector.html',
paths.webroot + 'favicon.ico', paths.webroot + 'favicon.ico',
paths.webroot + 'app-id.fidou2f' paths.webroot + 'app-id.json'
], ],
dest: paths.dist dest: paths.dist
} }
@ -444,7 +444,7 @@ gulp.task('serve', function () {
root: ['src'], root: ['src'],
middleware: function (connect, opt) { middleware: function (connect, opt) {
return [function (req, res, next) { return [function (req, res, next) {
if (req.originalUrl.indexOf('app-id.fidou2f') > -1) { if (req.originalUrl.indexOf('app-id.json') > -1) {
res.setHeader('Content-Type', 'application/fido.trusted-apps+json'); res.setHeader('Content-Type', 'application/fido.trusted-apps+json');
} }
next(); next();