Reference Error: cordova is not defined
-
Hi,
I am new to the Monaca platform and when I run the code
var privatePath = cordova.file.applicationDirectory, I get the error:
"Reference Error: cordova is not defined"
I am developing on the Monaca IDE and have activated the cordova plugin as well.
Can someone help me solve this please?
Thank you.