forked from EVOgeek/Vmeda.Online
		
	MOBILE-4362 h5p: Fix links in iframe not opened in iOS
This commit is contained in:
		
							parent
							
								
									23b0b9afc7
								
							
						
					
					
						commit
						5b9d2624a9
					
				| @ -232,7 +232,7 @@ export class CoreIframeUtilsProvider { | |||||||
|      */ |      */ | ||||||
|     getContentWindowAndDocument(element: CoreFrameElement): { window: Window | null; document: Document | null } { |     getContentWindowAndDocument(element: CoreFrameElement): { window: Window | null; document: Document | null } { | ||||||
|         const src = 'src' in element ? element.src : element.data; |         const src = 'src' in element ? element.src : element.data; | ||||||
|         if (!CoreUrlUtils.isLocalFileUrl(src)) { |         if (src !== 'about:blank' && !CoreUrlUtils.isLocalFileUrl(src)) { | ||||||
|             // No permissions to access the iframe.
 |             // No permissions to access the iframe.
 | ||||||
|             return { window: null, document: null }; |             return { window: null, document: null }; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user