tiny thing ;)

This commit is contained in:
tim h 2022-12-02 16:23:55 -06:00
parent ac70691cff
commit 60b81031fa

View file

@ -767,6 +767,8 @@ async function getStyles() {
let stored = null;
try {
stored = JSON.parse(localStorage.getItem("promptStyle"));
// doesn't seem to throw a syntaxerror if the localstorage item simply doesn't exist?
if (stored == null) stored = [];
} catch (e) {
stored = [];
}