MOBILE-3833 file: Change logic in unconvertFileSrc
parent
e55bc9ba0a
commit
f182c4ba0a
|
@ -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://');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue