use localStorage instead of sessionStorage

This commit is contained in:
Rhiannon Morris 2021-03-13 05:30:45 +01:00
parent 7b5ddab5da
commit 4cd5c1d673

View file

@ -4,7 +4,7 @@
let nsfwOk = 'nsfw-ok'; let nsfwOk = 'nsfw-ok';
function alreadyYes() { function alreadyYes() {
return sessionStorage.getItem(nsfwOk); return localStorage.getItem(nsfwOk);
} }
function dismiss() { function dismiss() {
@ -13,7 +13,7 @@ function dismiss() {
} }
function yes() { function yes() {
sessionStorage.setItem(nsfwOk, 1); localStorage.setItem(nsfwOk, 1);
dismiss(); dismiss();
} }