From 7b5d5ef57289c00b0314522b2c2981e4fc7a0f6c Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Fri, 26 Feb 2016 18:31:29 +0100 Subject: Issue #617: Create sandbox resouces --- web-ui/app/js/sandbox.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 web-ui/app/js/sandbox.js (limited to 'web-ui/app/js') 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; + } + }; +})(); -- cgit v1.2.3