Update _codesandbox.html.erb (#4575) [ci skip]

* Update _codesandbox.html.erb

Adding 'allow-popups' to enable 'open sandbox' and link buttons to work, so folks can open the sandbox in a new tab.

* Update app/views/liquids/_codesandbox.html.erb

Co-Authored-By: Michaël De Boey <info@michaeldeboey.be>
This commit is contained in:
garethx 2019-10-30 18:44:59 +00:00 committed by Mac Siri
parent d3dfc70f5a
commit fba9446e17

View file

@ -1,5 +1,6 @@
<iframe
src="<%= "https://codesandbox.io/embed/#{id}#{query}" %>"
style="width:100%; height:calc(300px + 8vw); border:0; border-radius: 4px; overflow:hidden;"
sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation-by-user-activation">
allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin">
</iframe>