js-storage
js-storage copied to clipboard
Error when using expiration plugin
Error message:
Uncaught TypeError: t.charCodeAt is not a function
-> store.everything.min.js?v=9609:2
Using in a bootstrap jquery project like this:
<script src="./node_modules/store/dist/store.everything.min.js"></script>
<script src="./js/app.js"></script>
Script:
var data = {lon: -666, lat: -666, key: 666};
store.set('weather', data, new Date().getTime() + 3000); // expiration in 3 sec