MOBILE-3401 ios: Fix iframes loading local file

main
Dani Palou 2020-05-22 15:18:16 +02:00
parent 82add048f0
commit fd464d45ce
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export class CoreIframeComponent implements OnInit, OnChanges {
if (changes.src) {
const url = this.urlUtils.getYoutubeEmbedUrl(changes.src.currentValue) || changes.src.currentValue;
if (this.platform.is('ios')) {
if (this.platform.is('ios') && !this.urlUtils.isLocalFileUrl(url)) {
// Save a "fake" cookie for the iframe's domain to fix a bug in WKWebView.
try {
const win = <WKWebViewCookiesWindow> window;