You can test it before accessing
if(window.plugins && window.plugins.crop) {
// You code
} else {
console.info("Crop plugin not available")
}
You can test it before accessing
if(window.plugins && window.plugins.crop) {
// You code
} else {
console.info("Crop plugin not available")
}