MOBILE-4362 h5p: Fix links in iframe not opened in iOS

main
Dani Palou 2023-10-10 16:27:48 +02:00
parent 23b0b9afc7
commit 5b9d2624a9
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ export class CoreIframeUtilsProvider {
*/
getContentWindowAndDocument(element: CoreFrameElement): { window: Window | null; document: Document | null } {
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.
return { window: null, document: null };
}