Probably your best bet would be to add it to the initialize function for your platform (example: https://github.com/gtanner/cordova-js/blob/master/lib/blackberry/plugin/qnx/platform.js#L26-42 )
If you need it to be sooner you have the option of the bootstrap file which gets tacked to the end of the cordova.js file (Example: https://github.com/gtanner/cordova-js/blob/master/lib/scripts/bootstrap-blackberry.js ) On Tue, Feb 19, 2013 at 10:45 AM, Leutwyler, Markus <markus.leutwy...@hp.com > wrote: > What's the process for adding stuff to cordova.js or how can i make such > changes platform specific? > > Let's say I want to add a new (in my case probably webOS specific) > document event for show/hide/relaunch to Cordova: > > Cordova.js, line 240 > channel.onShow = cordova.addDocumentEventHandler('show'); > > > > > Markus >