function withNewInterpreter()

in src/main/resources/assets/scaffold.js [45:56]


  function withNewInterpreter(fn) {
    $.ajax({
      type: 'POST',
      url: '/interpreter'
    }).done(function (_, _, xhr) {
      var interpreter = xhr.getResponseHeader('location');
      $.cookie(interpreterCookie, interpreter);
      fn(interpreter);
    }).fail(function() {
      console.log("Creating new cookie failed")
    })
  }