aboutsummaryrefslogtreecommitdiff
path: root/ext/sb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sb')
-rw-r--r--ext/sb/js/sandbox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sb/js/sandbox.js b/ext/sb/js/sandbox.js
index 76b7b511..bf1d56c1 100644
--- a/ext/sb/js/sandbox.js
+++ b/ext/sb/js/sandbox.js
@@ -24,7 +24,7 @@
window.addEventListener('message', event => {
if (event.data.command === 'render') {
const template = Handlebars.compile(event.data.template || '');
- const result = template(event.data.context || {});
- event.source.postMessage({result, sequence: event.data.sequence});
+ const result = template(event.data.data || {});
+ event.source.postMessage({result, sequence: event.data.sequence}, '*');
}
});