MOBILE-3639 core: Fix cordova not defined error in browser
parent
76611fabae
commit
fc6a95cb34
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue