Merge pull request #1432 from dpalou/MOBILE-2518
MOBILE-2518 iframe: Fix handling _self links in iOS
This commit is contained in:
commit
f4cdee8939
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user