Currently the directive will fail onClose if the global cordova is undefined (in the browser). Here, I replaced the !cordova check with a proper typeof cordova === 'undefined'
@alongubkin I did not bump the version number with this PR. Does the version need to bump to 1.0.3 in order for this change to appear when I bower install ?
Currently the directive will fail
onClose
if the globalcordova
is undefined (in the browser). Here, I replaced the!cordova
check with a propertypeof cordova === 'undefined'