MOBILE-3639 core: Fix cordova not defined error in browser

main
Dani Palou 2021-03-30 14:17:17 +02:00
parent 76611fabae
commit fc6a95cb34
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ export class CoreFileProvider {
* @return Path. * @return Path.
*/ */
getWWWAbsolutePath(): string { getWWWAbsolutePath(): string {
if (cordova && cordova.file && cordova.file.applicationDirectory) { if (window.cordova && cordova.file && cordova.file.applicationDirectory) {
return CoreTextUtils.concatenatePaths(cordova.file.applicationDirectory, 'www'); return CoreTextUtils.concatenatePaths(cordova.file.applicationDirectory, 'www');
} }