         initiallyFocusAddComment: true
 
 
-initDevelopmentConsole = ->
+initDevelopmentConsole = (clientEnvoy) ->
   return unless Factlink.Global.environment == 'development'
 
   console.group 'Factlink'

      e.stopPropagation()
      app.vent.trigger 'close_discussion_sidebar'

  if window.parent && window != window.parent
    senderEnvoy = Factlink.createSenderEnvoy(window.parent)
    Factlink.createReceiverEnvoy new ClientEnvoy(senderEnvoy)
  else
    initDevelopmentConsole()
    senderEnvoy = ->

  senderEnvoy 'modalFrameReady'

  console.log 'Now, how about a nice game of chess?'
  console.groupEnd()

  window.clientEnvoy = clientEnvoy

  command = window.location.hash.substring(1)
  if command.match /^clientEnvoy/
