Skip to content

Commit 6c81b34

Browse files
author
Garrett Johnson
committed
Ensure domain exists on access_info
1 parent 8e999f5 commit 6c81b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cookiejar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
return false;
138138
}
139139
}
140-
var access_domain = access_info.domain.replace(/^[\.]/,'');
140+
var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,'');
141141
var cookie_domain = this.domain && this.domain.replace(/^[\.]/,'');
142142
if (cookie_domain === access_domain) {
143143
return true;

0 commit comments

Comments
 (0)