+{remote} = window
 fs = require 'fs'
 glob = require 'glob'
 path = require 'path-extra'
+try ipc = remote.require './lib/ipc'
+catch error then console.log error
 
 {React, ReactDOM, ReactBootstrap} = window
 ModalArea = require './modal-area'

        battleNonce: battleNonce
        battlePacket: battlePacket

  # API for Component <OptionArea />
  shouldAutoShow: true



  componentDidMount: ->
    window.addEventListener 'game.response', @handleResponse
    try
      ipc.register "BattleDetail",
        showBattleWithTimestamp: @showBattleWithTimestamp
    catch error then console.log error

    setTimeout =>
      # Read packets from disk.
