real mode cordova.js
Refactor + test mode
Refactor + test mode
Refactor + test mode