public/javascript/session.js
function setOPBrowserState (event) {
    var key = 'anvil.connect.op.state'
    var current = localStorage[key]
    var update = event.data

    if (current !== update) {
      document.cookie = 'anvil.connect.op.state=' + update
      localStorage['anvil.connect.op.state'] = update
    }
  }
function setOPBrowserState (event) {
    var key = 'anvil.connect.op.state'
    var current = localStorage[key]
    var update = event.data

    if (current !== update) {
      document.cookie = 'anvil.connect.op.state=' + update
      localStorage['anvil.connect.op.state'] = update
    }
  }
function setOPBrowserState ( event ) { var key = 'anvil.connect.op.state' var current = localStorage [ key ] var update = event . data if ( current !== update ) { document . cookie = 'anvil.connect.op.state=' + update localStorage [ 'anvil.connect.op.state' ] = update } }
Set browser state
Set browser state