diff options
author | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-02-26 18:31:29 +0100 |
---|---|---|
committer | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-03-09 15:35:28 +0100 |
commit | 7b5d5ef57289c00b0314522b2c2981e4fc7a0f6c (patch) | |
tree | 755ada7c41372724eab92ce4fd947e2aa6e5ff02 /web-ui/app/js | |
parent | 3bdb9ecbeccae7842ef566f47b8119583d327cb2 (diff) |
Issue #617: Create sandbox resouces
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/sandbox.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web-ui/app/js/sandbox.js b/web-ui/app/js/sandbox.js new file mode 100644 index 00000000..f9e708d6 --- /dev/null +++ b/web-ui/app/js/sandbox.js @@ -0,0 +1,9 @@ +(function () { + 'use strict'; + + window.onmessage = function (e) { + if (e.data.html) { + document.body.innerHTML = e.data.html; + } + }; +})(); |