Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I've run into some cases of alert() usage in the cordova-js code. I think this is inappropriate, since we are using the cordova-js code in other environments than the browser, like the test harness. I end up seeing errors thrown on "alert() not defined" and such, which is masking the actual error from me.
Instead, we should define an alert()-y function somewhere - like cordova.alert(). This function can sniff if alert() is available, and if not, console.log() or the equivalent.