 
   componentDidMount: ->
     window.addEventListener 'game.response', @handleResponse
+    try
+      ipc.register "BattleDetail",
+        showBattleWithTimestamp: @showBattleWithTimestamp
+    catch error then console.log error
 
     setTimeout =>
       # Read packets from disk.

        battleNonce: battleNonce
        battlePacket: battlePacket

  # API for Component <OptionArea />
  shouldAutoShow: true



  componentWillUnmount: ->
    window.removeEventListener 'game.response', @handleResponse
    try
      ipc.unregisterAll "BattleDetail"
    catch error then console.log error

  handleResponse: (e) ->
    `var path;`   # HACK: Force shadowing an variable `path`;
