Merge pull request #1432 from dpalou/MOBILE-2518

MOBILE-2518 iframe: Fix handling _self links in iOS
main
Juan Leyva 2018-08-20 15:23:05 +01:00 committed by GitHub
commit f4cdee8939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 (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);
}
}
});