diff --git a/src/core/services/file.ts b/src/core/services/file.ts index 7e903a46d..29506eef7 100644 --- a/src/core/services/file.ts +++ b/src/core/services/file.ts @@ -1235,7 +1235,7 @@ export class CoreFileProvider { * @return Path. */ getWWWAbsolutePath(): string { - if (cordova && cordova.file && cordova.file.applicationDirectory) { + if (window.cordova && cordova.file && cordova.file.applicationDirectory) { return CoreTextUtils.concatenatePaths(cordova.file.applicationDirectory, 'www'); }