1
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:
2020-08-14 11:10:47 -04:00
parent 8e9e236ecc
commit e07934517c
5 changed files with 55 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>