fix for https

This commit is contained in:
Bomrah Harry 2018-10-17 17:21:06 +08:00
parent a0df7f77f4
commit 87f853242e
1 changed files with 3 additions and 0 deletions

View File

@ -429,6 +429,9 @@
processData: false, processData: false,
contentType: false contentType: false
}).done(function(data){ }).done(function(data){
if(window.location.protocol === "https:"){
data = data.replace("http:","https:");
}
$('.modal-body iframe').attr('src',data); $('.modal-body iframe').attr('src',data);
$('#show_preview .modal').modal(); $('#show_preview .modal').modal();
$('#show_preview .modal').height(function() { $('#show_preview .modal').height(function() {