Makes plugin compatible with newer cordova versions