 {$, $$, _, React, ReactBootstrap, FontAwesome, ROOT} = window
 {Grid, Col, Row, Button, ButtonGroup} = ReactBootstrap
-remote = require 'remote'
 webview = $('inner-page webview')
 
 psLog = (msg) ->

    currWin.setFullScreen(!currWin.isFullScreen())
  hideWindow: ->
    remote.getCurrentWindow().hide()
  copyToClipboard: ->
    webview.copy()
  render: ->
    <Grid fluid=true>
      <Row>

            <Button bsSize='small' bsStyle='primary' onClick={@maximiseWindow} onContextMenu={@resetWindow} title='Zoom/Reset Window'><FontAwesome name='arrows' /></Button>
            <Button bsSize='small' bsStyle='primary' onClick={@toggleFullscreen} title='Toggle Fullscreen'><FontAwesome name='arrows-alt' /></Button>
          </ButtonGroup>
          <span>　</span>
          <Button bsSize='small' onClick={@openExternal} title='Open in Browser'><FontAwesome name='external-link' /></Button>
        </Col>
        <Col lg={1} md={1} xs={1}>
          <Button bsSize='small' onClick={@hideWindow} title='Hide Window'><FontAwesome name='times' /></Button>
