diff --git a/README.md b/README.md index cebb3c6..7883b02 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ### What is MicroCookie? -MicroCookie is a desert-bone-dry cookie management package (just 654 bytes minimized!) designed to be so small you don't even notice it's there. It's also [100% compatible.](https://seedmanc.github.io/jscc/) +MicroCookie is a desert-bone-dry cookie management package (just 649 bytes minimized!) designed to be so small you don't even notice it's there. It's also [100% compatible.](https://seedmanc.github.io/jscc/)
diff --git a/export/microcookie-min.js b/export/microcookie-min.js index 1aa63a9..0e6c527 100644 --- a/export/microcookie-min.js +++ b/export/microcookie-min.js @@ -1,2 +1,2 @@ -/**@preserve https://github.com/10Nates/microcookie MIT */ -var MicroCookie={get:function(k){var t=document.cookie?document.cookie.split(/; ?/g):[];for(i=0;i seconds, not using Date.now() for compatibility - var nowsecs = Math.floor(new Date().getTime() / 1000) - // secs in a day secs in a week secs in 30.4375 days secs in 365.25 days - var newtime = nowsecs + (d ? d * 86400 : 0) + (w ? w * 604800 : 0) + (m ? m * 2629800 : 0) + (y ? y * 31557600 : 0) + // current seconds secs in a day secs in a week secs in 30.4375 days secs in 365.25 days + var newtime = Math.floor(new Date().getTime() / 1000) + (d ? d * 86400 : 0) + (w ? w * 604800 : 0) + (m ? m * 2629800 : 0) + (y ? y * 31557600 : 0) return Math.floor(newtime) }