Merge pull request #4196 from dpalou/MOBILE-4673

MOBILE-4673 ios: Fix iframe links script not loaded in some apps
main
Alfonso Salces 2024-10-08 13:16:58 +02:00 committed by GitHub
commit 8f6c1fd4c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ export class CoreIframeUtilsProvider {
*/ */
injectiOSScripts(userScriptWindow: WKUserScriptWindow): void { injectiOSScripts(userScriptWindow: WKUserScriptWindow): void {
const wwwPath = CoreFile.getWWWAbsolutePath(); const wwwPath = CoreFile.getWWWAbsolutePath();
const linksPath = CorePath.concatenatePaths(wwwPath, 'assets/js/iframe-treat-links.js'); const linksPath = CorePath.concatenatePaths(wwwPath, 'assets/js/iframe-treat-links.js').replace(/%20/g, ' ');
userScriptWindow.WKUserScript?.addScript({ id: 'CoreIframeUtilsLinksScript', file: linksPath }); userScriptWindow.WKUserScript?.addScript({ id: 'CoreIframeUtilsLinksScript', file: linksPath });