use localStorage instead of sessionStorage
This commit is contained in:
parent
7b5ddab5da
commit
4cd5c1d673
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
let nsfwOk = 'nsfw-ok';
|
||||
|
||||
function alreadyYes() {
|
||||
return sessionStorage.getItem(nsfwOk);
|
||||
return localStorage.getItem(nsfwOk);
|
||||
}
|
||||
|
||||
function dismiss() {
|
||||
|
@ -13,7 +13,7 @@ function dismiss() {
|
|||
}
|
||||
|
||||
function yes() {
|
||||
sessionStorage.setItem(nsfwOk, 1);
|
||||
localStorage.setItem(nsfwOk, 1);
|
||||
dismiss();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue