diff options
author | Sorin Davidoi <sorin.davidoi@gmail.com> | 2017-06-20 20:40:03 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-20 20:40:03 +0200 |
commit | 8f03fdce7fa16fcaa829a40f395cefc85eb957d5 (patch) | |
tree | 8eba2f952ccfebc5abb892893a7c4ee97581c588 /app/javascript/mastodon/components/column_back_button_slim.js | |
parent | 1fc6cb499742c1a872ad717a689c58a80aeb714d (diff) |
Upgrade React Router (#3677)
* chore(yarn): Remove react-router * chore(yarn): Remove react-router-scroll * chore(yarn): Remove history * chore(yarn): Add react-router-dom * chore: Remove usages of react-router-scroll * refactor: Upgrade to react-router-web * refactor: Use fork of react-router-scroll This reverts commit 2ddea9a6c8d39fc64b7d0b587f3fbda7a45a7fa2. * fix: Issues mentions in the PR feedback
Diffstat (limited to 'app/javascript/mastodon/components/column_back_button_slim.js')
-rw-r--r-- | app/javascript/mastodon/components/column_back_button_slim.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/column_back_button_slim.js b/app/javascript/mastodon/components/column_back_button_slim.js index 2d3f1b57a..ffb05fa02 100644 --- a/app/javascript/mastodon/components/column_back_button_slim.js +++ b/app/javascript/mastodon/components/column_back_button_slim.js @@ -9,8 +9,8 @@ class ColumnBackButtonSlim extends React.PureComponent { }; handleClick = () => { - if (window.history && window.history.length === 1) this.context.router.push('/'); - else this.context.router.goBack(); + if (window.history && window.history.length === 1) this.context.router.history.push('/'); + else this.context.router.history.goBack(); } render () { |