Version graphs to bypass cache

This commit is contained in:
JonnyWong16 2018-10-19 18:58:26 -07:00
parent 5c54283df7
commit d728f7a11e
2 changed files with 14 additions and 11 deletions

View file

@ -525,6 +525,9 @@ function setLocalStorage(key, value, path) {
localStorage.setItem(key, value);
}
function getLocalStorage(key, default_value, path) {
if (path !== false) {
key = key + '_' + window.location.pathname;
}
var value = localStorage.getItem(key);
if (value !== null) {
return value