cordova is not defined
DeanWilliamMills opened this issue · comments
DeanWilliamMills commented
Hi Eddy
Can you please help me. I get the following error when I add Insomnia in my project:
Uncaught ReferenceError: cordova is not defined
(anonymous function) @ Insomnia.js:21
It is this line : cordova.addConstructor(Insomnia.install);
Your help will be appreciated.
Jerome Ramos commented
make sure to add cordova.js in your index.html before calling insomnia.js
<script src="cordova.js"></script>
<script src="Insomnia.js"></script>
safanmomin commented
Not necessary to include the inomnia.js file just include the cordova.js file and you're good to go! :)