about summary refs log tree commit diff
path: root/app/javascript/glitch/components/status/player.js
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-07-15 15:10:06 -0700
committerkibigo! <marrus-sh@users.noreply.github.com>2017-07-15 15:10:06 -0700
commitbc4202d00b2956b630a7609fb74f31c04e9275f3 (patch)
treec56bc43d1df6f67168b4d2f82328bd1c3ca5309d /app/javascript/glitch/components/status/player.js
parent09cfc079b0958c42fe619e2d88c3f9fd1d7c7900 (diff)
Ported updates from #64
Diffstat (limited to 'app/javascript/glitch/components/status/player.js')
-rw-r--r--app/javascript/glitch/components/status/player.js6
1 files changed, 5 insertions, 1 deletions
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 {
       </div>
     );
 
-    let expandButton = (
+    let expandButton = !this.context.router ? '' : (
       <div className='status__video-player-expand'>
         <IconButton overlay title={intl.formatMessage(messages.expand_video)} icon='expand' onClick={this.handleExpand} />
       </div>