chrisben/imgcache.js — pull request #53 by ryreitsma (2014-04-17 17:04:41+00:00)
Title: Fix javascript error when running on Cordova iOS

It seems that 'device' is not always available, not even after the device_ready event. The check in Private.isCordovaAndroid does attempt to provide for that situation, however it produces a javascript error if 'device' is not present.

Using a more reliable method to check if it is an Android device yields consistent results.