1
0
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:
Kyle Spearrin
2017-06-06 08:48:05 -04:00
parent c6533a961a
commit bc9504f039
3 changed files with 16 additions and 1 deletions

View File

@@ -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;