|
|
@ -49,6 +49,10 @@ export default class Mastodon extends React.PureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shouldUpdateScroll (_, { location }) { |
|
|
|
|
|
|
|
return !(location.state && location.state.mastodonModalOpen); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const { locale } = this.props; |
|
|
|
const { locale } = this.props; |
|
|
|
|
|
|
|
|
|
|
@ -57,7 +61,7 @@ export default class Mastodon extends React.PureComponent { |
|
|
|
<Provider store={store}> |
|
|
|
<Provider store={store}> |
|
|
|
<ErrorBoundary> |
|
|
|
<ErrorBoundary> |
|
|
|
<BrowserRouter basename='/web'> |
|
|
|
<BrowserRouter basename='/web'> |
|
|
|
<ScrollContext> |
|
|
|
<ScrollContext shouldUpdateScroll={this.shouldUpdateScroll}> |
|
|
|
<Route path='/' component={UI} /> |
|
|
|
<Route path='/' component={UI} /> |
|
|
|
</ScrollContext> |
|
|
|
</ScrollContext> |
|
|
|
</BrowserRouter> |
|
|
|
</BrowserRouter> |
|
|
|