Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jan 25, 2015
1 parent 8b2d51d commit 97f1cae
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions www/TouchID.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
cordova.define("nl.x-services.plugins.touchid.TouchID", function(require, exports, module) { function TouchID() {
function TouchID() {
}

TouchID.prototype.isAvailable = function (successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "isAvailable", []);
};
TouchID.prototype.isAvailable = function (successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "isAvailable", []);
};

TouchID.prototype.verifyFingerprint = function (message, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "verifyFingerprint", [message]);
};
TouchID.prototype.verifyFingerprint = function (message, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "verifyFingerprint", [message]);
};

TouchID.prototype.verifyFingerprintWithCustomPasswordFallback = function (message, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "verifyFingerprintWithCustomPasswordFallback", [message]);
};
TouchID.prototype.verifyFingerprintWithCustomPasswordFallback = function (message, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "TouchID", "verifyFingerprintWithCustomPasswordFallback", [message]);
};

TouchID.install = function () {
if (!window.plugins) {
window.plugins = {};
}
TouchID.install = function () {
if (!window.plugins) {
window.plugins = {};
}

window.plugins.touchid = new TouchID();
return window.plugins.touchid;
};
window.plugins.touchid = new TouchID();
return window.plugins.touchid;
};

cordova.addConstructor(TouchID.install);
});
cordova.addConstructor(TouchID.install);

0 comments on commit 97f1cae

Please sign in to comment.