forked from EVOgeek/Vmeda.Online
MOBILE-2518 iframe: Fix handling _self links in iOS
This commit is contained in:
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…
x
Reference in New Issue
Block a user