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:
parent
d3dfc70f5a
commit
fba9446e17
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue