mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-18 16:53:56 +00:00
fix: check if localStorage items exist
This commit is contained in:
@@ -21,8 +21,13 @@
|
||||
onMount(async () => {
|
||||
const response = await fetch('https://poll.revanced.app/logos');
|
||||
const json = await response.json();
|
||||
currentPage = localStorage.getItem('currentPage');
|
||||
selected = JSON.parse(localStorage.getItem('selected'));
|
||||
if (localStorage.getItem('currentPage') !== null) {
|
||||
currentPage = localStorage.getItem('currentPage')
|
||||
};
|
||||
|
||||
if (localStorage.getItem('selected') !== null) {
|
||||
selected = JSON.parse(localStorage.getItem('selected'));
|
||||
}
|
||||
|
||||
min = currentPage * logoAmount;
|
||||
max = min + logoAmount;
|
||||
|
||||
Reference in New Issue
Block a user