     # can't use postMessage, so this hacky executeScript works
     @iabWindow.addEventListener 'loadstart', =>
       @iabWindow.executeScript {
-        code: "window._portalIsInAppBrowser = true;
-              localStorage.getItem('portal:queue');"
+        code: 'window._portalIsInAppBrowser = true;'
       }
       clearInterval @iabInterval
       @iabInterval = setInterval =>

    @handshakeTimeout ?= DEFAULT_HANDSHAKE_TIMEOUT_MS
    @isListening = false
    @isLegacy = false # TODO: remove when native apps are updated
    isInAppBrowser = window._portalIsInAppBrowser
    @hasParent = (window? and window.self isnt window.top) or isInAppBrowser
    @parent = window?.parent


    selfWindow.addEventListener 'message', @onMessage

    # set via win.executeScript in cordova
    window?._portalOnMessage = (eStr) =>
      @onMessage {
        debug: true
        data: JSON.parse eStr
