`window.cordova` is a common way of checking to see if cordova is available. It would not be wise to override this for the barcode plugin