Merge pull request #2979 from dpalou/MOBILE-3833

MOBILE-3833 file: Change logic in unconvertFileSrc
main
Pau Ferrer Ocaña 2021-10-21 12:39:46 +02:00 committed by GitHub
commit 55b6d9f76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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://');
}
/**