MOBILE-3401 ios: Fix iframes loading local file
parent
82add048f0
commit
fd464d45ce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue