tiny thing ;)
This commit is contained in:
parent
ac70691cff
commit
60b81031fa
1 changed files with 2 additions and 0 deletions
|
@ -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 = [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue