       e.stopPropagation()
       app.vent.trigger 'close_discussion_sidebar'
 
+  clientEnvoy = new ClientEnvoy(senderEnvoy)
+
   if window.parent && window != window.parent
     senderEnvoy = Factlink.createSenderEnvoy(window.parent)
-    Factlink.createReceiverEnvoy new ClientEnvoy(senderEnvoy)
+    Factlink.createReceiverEnvoy clientEnvoy
   else
-    initDevelopmentConsole()
-    senderEnvoy = ->
+    senderEnvoy = (args...) -> console.info 'senderEnvoy:', args...
+    initDevelopmentConsole(clientEnvoy)
 
   senderEnvoy 'modalFrameReady'

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

  window.clientEnvoy = new ClientEnvoy(->)

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

        initiallyFocusAddComment: true


initDevelopmentConsole = (clientEnvoy) ->
  return unless Factlink.Global.environment == 'development'

  console.group 'Factlink'
