summaryrefslogtreecommitdiff
path: root/web-ui/app/js/sandbox.js
blob: 33b16ea4228be0bcf278118ffbd9acef69061295 (plain)
1
2
3
4
5
6
7
8
9
10
11
(function () {
  'use strict';

  window.onmessage = function (e) {
    if (e.data.html) {
      document.body.innerHTML = e.data.html;
      var mainWindow = e.source;
      mainWindow.postMessage('data ok', e.origin);
    }
  };
})();