Skip to content

Commit fd464d4

Browse files
committed
MOBILE-3401 ios: Fix iframes loading local file
1 parent 82add04 commit fd464d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/iframe/iframe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class CoreIframeComponent implements OnInit, OnChanges {
9999
if (changes.src) {
100100
const url = this.urlUtils.getYoutubeEmbedUrl(changes.src.currentValue) || changes.src.currentValue;
101101

102-
if (this.platform.is('ios')) {
102+
if (this.platform.is('ios') && !this.urlUtils.isLocalFileUrl(url)) {
103103
// Save a "fake" cookie for the iframe's domain to fix a bug in WKWebView.
104104
try {
105105
const win = <WKWebViewCookiesWindow> window;

0 commit comments

Comments
 (0)