diff --git a/app/views/admin/announcements/_form.html.erb b/app/views/admin/announcements/_form.html.erb index dec8ea1..c789e22 100644 --- a/app/views/admin/announcements/_form.html.erb +++ b/app/views/admin/announcements/_form.html.erb @@ -429,6 +429,9 @@ processData: false, contentType: false }).done(function(data){ + if(window.location.protocol === "https:"){ + data = data.replace("http:","https:"); + } $('.modal-body iframe').attr('src',data); $('#show_preview .modal').modal(); $('#show_preview .modal').height(function() {