Save graph visibility state

This commit is contained in:
JonnyWong16 2018-10-13 15:42:36 -07:00
parent 83a4dfc0de
commit 1ef4fd294a
13 changed files with 161 additions and 101 deletions

View file

@ -517,8 +517,15 @@ function PopupCenter(url, title, w, h) {
return newWindow;
}
if (!localStorage.getItem('Tautulli_ClientId')) {
localStorage.setItem('Tautulli_ClientId', uuidv4());
function setLocalStorage(key, value) {
localStorage.setItem(key, value);
}
function getLocalStorage(key) {
return localStorage.getItem(key);
}
if (!getLocalStorage('Tautulli_ClientId')) {
setLocalStorage('Tautulli_ClientId', uuidv4());
}
function uuidv4() {