MOBILE-2518 iframe: Fix handling _self links in iOS
parent
e6c5607463
commit
d4cc00be93
|
@ -265,10 +265,10 @@ export class CoreIframeComponent implements OnInit, OnChanges {
|
|||
if (!e.defaultPrevented) {
|
||||
if (element.tagName.toLowerCase() == 'object') {
|
||||
e.preventDefault();
|
||||
element.attr('data', href);
|
||||
element.setAttribute('data', href);
|
||||
} else {
|
||||
e.preventDefault();
|
||||
element.attr('src', href);
|
||||
element.setAttribute('src', href);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue