Fix error if callback is not set

This commit is contained in:
brantje 2016-09-24 19:35:42 +02:00
parent bedbfc875b
commit 39b64b6e87

View file

@ -170,7 +170,9 @@ angular.module('passmanApp')
scope.generatePasswordProgress();
} else {
scope.disabled = false;
scope.callback(scope.password)
if(scope.callback) {
scope.callback(scope.password)
}
}
}, 10);
};