From 9bdd691dce74d33ca1a0757dc4f2c22e156d55ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20M=C3=B8ller?= Date: Tue, 27 Feb 2018 15:41:44 +0100 Subject: [PATCH] Append allow-modals to demo iframe Sometimes it's useful to make a demo with the use of window.alert() or window.prompt(), and `allow-modals` needs to be set on the iframe in order to use those features. --- views/partials/pen/preview.nunj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/partials/pen/preview.nunj b/views/partials/pen/preview.nunj index e9b684d..9ce2dce 100644 --- a/views/partials/pen/preview.nunj +++ b/views/partials/pen/preview.nunj @@ -8,7 +8,7 @@ class="Preview-iframe" data-role="window" src="{{ previewUrl }}" - sandbox="allow-same-origin allow-scripts allow-forms" + sandbox="allow-same-origin allow-scripts allow-forms allow-modals" {% if entity.display %} style="{% for property, value in entity.display %}{{ property }}: {{ value }} !important; {% endfor %}"{% endif %} marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" scrolling="yes">