mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 04:18:57 -05:00
fix weird chrome sandbox quirks on dark mode example's iframe
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<amp-iframe
|
||||
sandbox="allow-scripts allow-same-origin allow-popups"
|
||||
layout="responsive"
|
||||
width="{{ .Get "width" }}"
|
||||
height="{{ .Get "height" }}"
|
||||
src="{{ .Get "src" }}"
|
||||
{{ with .Get "title" }}title="{{ . }}"{{ end }}>
|
||||
{{ with .Get "title" }}title="{{ . }}"{{ end }}
|
||||
{{ with .Get "sandbox" }}sandbox="{{ . }}"{{ end }}>
|
||||
</amp-iframe>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="embed {{ .Name }}">
|
||||
<iframe src="{{ .Get "src" }}" {{ with .Get "title" }}title="{{ . }}"{{ end }}></iframe>
|
||||
<iframe src="{{ .Get "src" }}"{{ with .Get "title" }} title="{{ . }}"{{ end }}{{ with .Get "sandbox" }} sandbox="{{ . }}"{{ end }}></iframe>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user