From d4cc00be93ded5d9146787f5c41373bfa8d77db0 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 26 Jul 2018 16:00:21 +0200 Subject: [PATCH] MOBILE-2518 iframe: Fix handling _self links in iOS --- src/components/iframe/iframe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/iframe/iframe.ts b/src/components/iframe/iframe.ts index f63701745..da98a380b 100644 --- a/src/components/iframe/iframe.ts +++ b/src/components/iframe/iframe.ts @@ -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); } } });