mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-22 11:26:13 +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,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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue