aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/message.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-18 16:11:45 +0100
committerSimon Ser <contact@emersion.fr>2020-01-20 16:20:15 +0100
commit721c3ce3eb41e76b0fddd2f5d42b0bfd99439bdd (patch)
tree23ba9ddff559ef1172b8169af317ee8da1ff6930 /plugins/base/public/message.html
parentaf5ffd12f9c23ecf34e1f24b36804623479d44e9 (diff)
downloadalps-721c3ce3eb41e76b0fddd2f5d42b0bfd99439bdd.tar.gz
alps-721c3ce3eb41e76b0fddd2f5d42b0bfd99439bdd.zip
Resize e-mail iframe with content
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r--plugins/base/public/message.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 6ce633b..cfb0169 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -114,7 +114,8 @@
<p><a href="{{.Message.Uid}}/reply?part={{.PartPath}}">Reply</a></p>
{{if .IsHTML}}
<!-- TODO: add a src fallback -->
- <iframe srcdoc="{{.Body}}" sandbox></iframe>
+ <!-- allow-same-origin is required to resize the frame with its content -->
+ <iframe id="email-frame" srcdoc="{{.Body}}" sandbox="allow-same-origin"></iframe>
{{else}}
<pre>{{.Body}}</pre>
{{end}}