Skip to content

Commit

Permalink
fix(history-browser): Ensure all navigate() paths return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
davismj committed Apr 28, 2018
1 parent e1a574a commit 47beb9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ export class BrowserHistory extends History {
// If you've told us that you explicitly don't want fallback hashchange-
// based history, then `navigate` becomes a page refresh.
this.location.assign(url);
return true;
}

if (trigger) {
return this._loadUrl(fragment);
}

return true;
}

/**
Expand Down

0 comments on commit 47beb9b

Please sign in to comment.