Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
unsubscribeCordovaEvents() {
if (isCordova()) {
document.removeEventListener('deviceready', this.onDeviceReady)
document.removeEventListener('resume', this.onResume)
}
}
subscribeCordovaEvents() {
if (isCordova()) {
document.addEventListener('deviceready', this.onDeviceReady)
document.addEventListener('resume', this.onResume)
}
}