clean up sorting feture fix #3
This commit is contained in:
+2
-4
@@ -180,8 +180,7 @@ function loadView() {
|
|||||||
try {
|
try {
|
||||||
const raw = localStorage.getItem(STORAGE_KEY_VIEW);
|
const raw = localStorage.getItem(STORAGE_KEY_VIEW);
|
||||||
return raw || "grid";
|
return raw || "grid";
|
||||||
} catch (error) {
|
} catch {
|
||||||
console.error("View settings could not be loaded:", error);
|
|
||||||
return "grid";
|
return "grid";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -190,8 +189,7 @@ function loadSort() {
|
|||||||
try {
|
try {
|
||||||
const raw = localStorage.getItem(STORAGE_KEY_SORT);
|
const raw = localStorage.getItem(STORAGE_KEY_SORT);
|
||||||
return raw || "title";
|
return raw || "title";
|
||||||
} catch (error) {
|
} catch {
|
||||||
console.error("View settings could not be loaded:", error);
|
|
||||||
return "title";
|
return "title";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user