Handle disabled localStorage gracefully
Instead of failing with a cryptic error in the dev console, this commit allows the app to keep working and skips the localStorage persistance if no localStorage is available.
3 files changed
+31
-9
514359e1
→
a73c5490
modified src/lib/appearance.ts
@@ -20,7 +20,7 @@ export const codeFonts: {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -31,7 +31,7 @@ function loadCodeFont(): CodeFont {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -42,10 +42,22 @@ function loadTheme(): Theme {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified src/lib/seeds.ts
@@ -17,11 +17,13 @@ export const configuredPreferredSeeds = storedWritable<BaseUrl[]>(
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/views/projects/Sidebar.svelte
@@ -21,14 +21,22 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|