FIX: Email Previewing was not showing in Firefox

This commit is contained in:
Robin Ward 2017-03-27 14:41:26 -04:00
parent 20400cb33f
commit 1d478a97db
2 changed files with 1 additions and 5 deletions

View File

@ -8,10 +8,6 @@ export default Ember.Controller.extend({
showSendEmailForm: Em.computed.notEmpty('model.html_content'),
htmlEmpty: Em.computed.empty('model.html_content'),
iframeSrc: function() {
return ('data:text/html;charset=utf-8,' + encodeURI(this.get('model.html_content')));
}.property('model.html_content'),
actions: {
refresh() {
const model = this.get('model');

View File

@ -43,7 +43,7 @@
{{#if htmlEmpty}}
<p>{{i18n 'admin.email.no_result'}}</p>
{{else}}
<iframe src="{{iframeSrc}}" />
<iframe srcdoc={{model.html_content}} />
{{/if}}
{{else}}
<pre>{{{model.text_content}}}</pre>