Merge pull request #4196 from dpalou/MOBILE-4673
MOBILE-4673 ios: Fix iframe links script not loaded in some appsmain
commit
8f6c1fd4c2
|
@ -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 });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue