Skip to content

Commit

Permalink
Removed Duplicate Key
Browse files Browse the repository at this point in the history
Removed duplicate key.
  • Loading branch information
karandpr committed Jun 12, 2018
1 parent 1ea75ee commit cf47591
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions www/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
var exec = require('cordova/exec');
let exec;
try {
exec = require('cordova/exec');
} catch (error) {
console.log('Cordova exec not found');
exec = function (cb, err, PLUGIN_NAME, RootCheck, args) {
console.log('Invoked RootCheck:' + RootCheck);
cb();
};
}


var PLUGIN_NAME = 'cdvRootBeer';

Expand Down Expand Up @@ -41,10 +51,7 @@ var cdvRootBeer = {
},
checkForRootNative: function (cb, err) {
exec(cb, err, PLUGIN_NAME, 'checkForRootNative', []);
},
detectTestKeys: function (cb,err) {
exec(cb, err, PLUGIN_NAME, 'detectTestKeys', []);
},
},
checkForMagiskBinary: function (cb,err) {
exec(cb, err, PLUGIN_NAME, 'checkForMagiskBinary', []);
}
Expand Down

0 comments on commit cf47591

Please sign in to comment.