Merge pull request #660 from marrus-sh/mastodon-smart-back-button
#467 – Making the back button a little smarterremotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
commit
0924eee81b
|
@ -15,7 +15,8 @@ const ColumnBackButton = React.createClass({
|
||||||
mixins: [PureRenderMixin],
|
mixins: [PureRenderMixin],
|
||||||
|
|
||||||
handleClick () {
|
handleClick () {
|
||||||
this.context.router.goBack();
|
if (window.history && window.history.length == 1) this.context.router.push("/");
|
||||||
|
else this.context.router.goBack();
|
||||||
},
|
},
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
|
Loading…
Reference in New Issue