Commits

Radomir Dopieralski committed e24626b

logging

Comments (0)

Files changed (1)

         name = escape(name);
         name = name.replace(/[\-\.\+\*]/g, "\\$&");
         var re = "(?:^|.*;\\s*)" + name + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";
-        return unescape(document.cookie.replace(new RegExp(re), "$1"));
+        var value = document.cookie.replace(new RegExp(re), "$1");
+        console.log(document.cookie);
+        console.log(value);
+        value = unescape(value);
+        return value;
     };
 
     module.save_cookie = function (name, value) {