Open mzahidriaz opened 10 years ago
$.localStorage.options = { cookiePrefix : 'fallback:' + method + ':', cookieOptions : { path : '/', domain : document.domain, expires : ('localStorage' === method) ? { expires: 365 } : undefined } };
This fails on my andriod 2.3.5. Because expires gone twice in the cookie options object.
Therefore I've to change it to just number to work.
var defaults = { cookiePrefix : 'fallback:' + method + ':', cookieOptions : { path : '/', domain : document.domain, expires : ('localStorage' === method) ? 365 : undefined } };
Its a bug. How it is invalid. You can't pass object in expires attribute of cookie option. Thats what jquery.cookie.js says
This fails on my andriod 2.3.5. Because expires gone twice in the cookie options object.
Therefore I've to change it to just number to work.