mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
setting up more models and services
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
!function () {
|
||||
var _userProfile = null;
|
||||
|
||||
UserService.prototype.getUserId = function (callback) {
|
||||
this.getUserProfile(function (profile) {
|
||||
callback(profile.id);
|
||||
});
|
||||
};
|
||||
|
||||
UserService.prototype.getUserProfile = function (callback) {
|
||||
if (!callback || typeof callback !== 'function') {
|
||||
throw 'callback function required';
|
||||
|
||||
Reference in New Issue
Block a user