From bc4202d00b2956b630a7609fb74f31c04e9275f3 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sat, 15 Jul 2017 15:10:06 -0700 Subject: Ported updates from #64 --- app/javascript/glitch/components/status/player.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/javascript/glitch/components/status/player.js') diff --git a/app/javascript/glitch/components/status/player.js b/app/javascript/glitch/components/status/player.js index 37e4b8995..cc65cd34e 100644 --- a/app/javascript/glitch/components/status/player.js +++ b/app/javascript/glitch/components/status/player.js @@ -17,6 +17,10 @@ const messages = defineMessages({ @injectIntl export default class StatusPlayer extends React.PureComponent { + static contextTypes = { + router: PropTypes.object, + }; + static propTypes = { media: ImmutablePropTypes.map.isRequired, letterbox: PropTypes.bool, @@ -122,7 +126,7 @@ export default class StatusPlayer extends React.PureComponent { ); - let expandButton = ( + let expandButton = !this.context.router ? '' : (
-- cgit