(function(){
  var apiKey = sessionStorage.getItem('tk-api-key');
  if(apiKey === null){
    var onLoadHandler = function() {
      var win = window.frames.target;
      win.postMessage("сообщение", "https://dev-livenation.devportal.apigee.com");
    };

    var iframe = document.createElement("iframe");
    iframe.style.display = "none";
    iframe.setAttribute("src","https://dev-livenation.devportal.apigee.com/user/");
    iframe.setAttribute("name","target");
    iframe.addEventListener("load",onLoadHandler);

    var body = document.getElementsByTagName("body")[0];
    body.appendChild(iframe);
  }


  // Wait for response
  // TODO: update links to live
  checkResponse = function(event){
    if( event.origin = "https://dev-livenation.devportal.apigee.com") {
      sessionStorage.setItem('tk-api-key', event.data);
    }
    else{
      console.error(event.origin + " is not allowed");
    }
  };

  if (window.addEventListener) {
    window.addEventListener("message", checkResponse);
  } else {
    // IE8
    window.attachEvent("onmessage", checkResponse);
  }

})();
@@ -184,17 +184,8 @@
 ge(%22
-%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D0%BD%D0%B8%D0%B5
 %22, %22
@@ -184,35 +184,36 @@
 ge(%22%22, %22https://
-dev
+live
 -livenation.devp
@@ -357,35 +357,36 @@
 (%22src%22,%22https://
-dev
+live
 -livenation.devp
@@ -720,19 +720,20 @@
 https://
-dev
+live
 -livenat

move to live