Skip to content

Commit

Permalink
add message if localstorage is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaston100 committed Nov 20, 2023
1 parent c959c3d commit ee238dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OBSliveTally.html
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@
localStorage.setItem("connect.auto", "No");
DOcMenableAutoConnect.innerText = "Enable auto connect";
}
} else {
alert("localStorage support not detected, auto connect will not work");
}
},
"toggleAutoRestore": async function(event) {
Expand All @@ -593,6 +595,8 @@
localStorage.setItem("connect.restore", "No");
DOcMenableAutoRestore.innerText = "Enable auto restore";
}
} else {
alert("localStorage support not detected, auto connect will not work");
}
},
"reload": async function(event) {
Expand Down

0 comments on commit ee238dc

Please sign in to comment.