Compare commits

...

2 Commits

Author SHA1 Message Date
Danny Coates
6a6f8b86e4 v3.0.5 2019-03-14 12:04:01 -07:00
Danny Coates
c4891c3866 fixed req.route bug when no routes match 2019-03-14 12:02:36 -07:00
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "firefox-send", "name": "firefox-send",
"version": "3.0.4", "version": "3.0.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,7 +1,7 @@
{ {
"name": "firefox-send", "name": "firefox-send",
"description": "File Sharing Experiment", "description": "File Sharing Experiment",
"version": "3.0.4", "version": "3.0.5",
"author": "Mozilla (https://mozilla.org)", "author": "Mozilla (https://mozilla.org)",
"repository": "mozilla/send", "repository": "mozilla/send",
"homepage": "https://github.com/mozilla/send/", "homepage": "https://github.com/mozilla/send/",

View File

@@ -33,7 +33,7 @@ module.exports = async function(req) {
fileInfo: {}, fileInfo: {},
cspNonce: req.cspNonce, cspNonce: req.cspNonce,
user: { avatar: assets.get('user.svg'), loggedIn: false }, user: { avatar: assets.get('user.svg'), loggedIn: false },
route: req.route.path, route: req.route ? req.route.path : null,
authConfig, authConfig,
layout layout
}; };