MOBILE-3833 file: Change logic in unconvertFileSrc

main
Dani Palou 2021-10-21 12:03:57 +02:00
parent e55bc9ba0a
commit f182c4ba0a
1 changed files with 4 additions and 2 deletions

View File

@ -1274,9 +1274,11 @@ export class CoreFileProvider {
return src;
}
const scheme = CoreApp.isIOS() ? CoreConstants.CONFIG.ioswebviewscheme : 'http';
if (CoreApp.isIOS()) {
return src.replace(CoreConstants.CONFIG.ioswebviewscheme + '://localhost/_app_file_', 'file://');
}
return src.replace(scheme + '://localhost/_app_file_', 'file://');
return src.replace('http://localhost/_app_file_', 'file://');
}
/**