Reject on no plugin
This commit is contained in:
parent
51d1ad75f6
commit
cccfb60a4f
3
dist/cordova-wrap.js
vendored
3
dist/cordova-wrap.js
vendored
@ -1089,6 +1089,9 @@ var promisifyCordova = function promisifyCordova(pluginObj, pluginName, methodNa
|
||||
|
||||
if (!pluginObj.installed()) {
|
||||
console.warn('Cordova: tried calling', '"' + pluginName + '.' + methodName + '"', 'but the ' + pluginObj.plugin + ' plugin is not installed.');
|
||||
reject({
|
||||
error: 'plugin_not_installed'
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log('Cordova: exec(' + pluginName + ', ' + methodName + ')');
|
||||
|
2
dist/cordova-wrap.js.map
vendored
2
dist/cordova-wrap.js.map
vendored
File diff suppressed because one or more lines are too long
3
src/cordova.js
vendored
3
src/cordova.js
vendored
@ -14,6 +14,9 @@ const promisifyCordova = (pluginObj, pluginName, methodName) => {
|
||||
|
||||
if(!pluginObj.installed()) {
|
||||
console.warn('Cordova: tried calling', '"' + pluginName + '.' + methodName + '"', 'but the ' + pluginObj.plugin + ' plugin is not installed.');
|
||||
reject({
|
||||
error: 'plugin_not_installed'
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log('Cordova: exec(' + pluginName + ', ' + methodName +')');
|
||||
|
Loading…
Reference in New Issue
Block a user