New header, controls for category visibility

This commit is contained in:
Cryptkeeper
2016-02-23 18:47:27 -06:00
parent 2fa3f08ae8
commit 6204a536c4
5 changed files with 133 additions and 44 deletions

View File

@ -71,7 +71,7 @@ function toggleControlsDrawer() {
}
function saveGraphControls(displayedServers) {
if (typeof(localStorage) !== undefined) {
if (typeof(localStorage)) {
var json = JSON.stringify(displayedServers);
localStorage.setItem('displayedServers', json);
@ -79,7 +79,7 @@ function saveGraphControls(displayedServers) {
}
function loadGraphControls() {
if (typeof(localStorage) !== undefined) {
if (typeof(localStorage)) {
var item = localStorage.getItem('displayedServers');
if (item) {
@ -89,7 +89,7 @@ function loadGraphControls() {
}
function resetGraphControls() {
if (typeof(localStorage) !== undefined) {
if (typeof(localStorage)) {
localStorage.removeItem('displayedServers');
}
}