mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-20 02:16:28 +08:00
Fix error if callback is not set
This commit is contained in:
parent
bedbfc875b
commit
39b64b6e87
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue