don't try to replace undefined

pull/1/head
ansuz 8 years ago
parent 52975a2f09
commit 8bee45d0f4

@ -78,7 +78,7 @@ var parseCookie = function (cookie) {
};
var escapeKeyCharacters = function (key) {
return key.replace(/\//g, '-');
return key && key.replace && key.replace(/\//g, '-');
};
var unescapeKeyCharacters = function (key) {

Loading…
Cancel
Save