Skip to content

Commit

Permalink
fix: check signal payload directly on event object
Browse files Browse the repository at this point in the history
  • Loading branch information
Guria committed Apr 19, 2016
1 parent 5a4bc21 commit 5d2d929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Router (routesConfig, options) {
var signal = signals[event.signal.name]
if (signal && (!event.signal.isRouted && !(event.options && event.options.isRouted))) {
var route = signal.route
var input = event.signal.input || {}
var input = event.signal.input || event.payload || {}
addressbar.value = options.baseUrl + urlMapper.stringify(route, input)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"pretest": "standard",
"test": "nodeunit tests && npm i [email protected].2 && nodeunit tests",
"test": "nodeunit tests && npm i cerebral@^0.34.0-rc.4 && nodeunit tests",
"posttest": "npm i",
"coverage": "nyc --reporter=lcov --reporter=text npm run test",
"postcoverage": "cat ./coverage/lcov.info | coveralls",
Expand Down

0 comments on commit 5d2d929

Please sign in to comment.