Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 130a8e3

Browse files
committed
ensure value is not null or undefined
1 parent 19e8f81 commit 130a8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngCookies/cookies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ angular.module('ngCookies', ['ng']).
9696
//update all cookies updated in $cookies
9797
for(name in cookies) {
9898
value = cookies[name];
99-
if(value != undefined){
99+
if(value !== null && value !== undefined){
100100
expires = value.expires;
101101
}
102102
if (!angular.isString(value)) {

0 commit comments

Comments
 (0)