   formatMsg: (msg) ->
     message = ""
     try
-      if typeof msg != "string"
+      if typeof msg isnt "string"
         message = JSON.stringify(msg, null, "  ")
       else
         message = msg


    @iframePhoneRpc = new iframePhone.IframePhoneRpcEndpoint
      phone: @iframePhone
      namespace: 'lara-logging'  

  constructor: ($iframe) ->
    @restart($iframe)


  phone_answered: ->
    l.info("phone answered")
    return if @already_setup
      @already_setup = true
      setupMessage = (parentMessage) =>
        @iframePhone.addListener parentMessage, (data) =>
