mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
do not set undefined properties
This commit is contained in:
@@ -38,6 +38,11 @@ function initUserService() {
|
||||
UserService.prototype.setSecurityStamp = function (stamp) {
|
||||
var deferred = Q.defer();
|
||||
|
||||
if (stamp === undefined) {
|
||||
deferred.resolve();
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
_stamp = stamp;
|
||||
var stampObj = {};
|
||||
stampObj[stampKey] = stamp;
|
||||
|
||||
Reference in New Issue
Block a user