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,8 +170,10 @@ angular.module('passmanApp')
scope.generatePasswordProgress(); scope.generatePasswordProgress();
} else { } else {
scope.disabled = false; scope.disabled = false;
if(scope.callback) {
scope.callback(scope.password) scope.callback(scope.password)
} }
}
}, 10); }, 10);
}; };