MOBILE-2518 iframe: Fix handling _self links in iOS

main
Dani Palou 2018-07-26 16:00:21 +02:00
parent e6c5607463
commit d4cc00be93
1 changed files with 2 additions and 2 deletions

View File

@ -265,10 +265,10 @@ export class CoreIframeComponent implements OnInit, OnChanges {
if (!e.defaultPrevented) { if (!e.defaultPrevented) {
if (element.tagName.toLowerCase() == 'object') { if (element.tagName.toLowerCase() == 'object') {
e.preventDefault(); e.preventDefault();
element.attr('data', href); element.setAttribute('data', href);
} else { } else {
e.preventDefault(); e.preventDefault();
element.attr('src', href); element.setAttribute('src', href);
} }
} }
}); });