Fix savetarget frame use (#5897)

pull/5917/head
Aleksander Machniak 7 years ago
parent 3f6ca2cffc
commit cf9019e462

@ -4789,20 +4789,15 @@ function rcube_webmail()
// Create (attach) 'savetarget' iframe before use
this.get_save_target = function()
{
if (!this.save_target) {
this.save_target = $('<iframe>').attr({
$('<iframe>').attr({
name: "savetarget",
src: "about:blank",
style: "width:0;height:0;visibility:hidden;",
'aria-hidden': "true"
});
}
this.save_target
.detach()
.attr('src', "about:blank")
})
.appendTo('body')
// Removing savetarget frame to workaround issues with window history
.on('load error', function() { $(this).detach(); });
.on('load error', function() { $(this).remove(); });
return 'savetarget';
};

Loading…
Cancel
Save