Skip to content

Commit

Permalink
added low data mode load to layout.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
zaanposni committed Nov 20, 2024
1 parent 1230eef commit f7b2223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/psaggregator/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
SHOW_ABSOLUTE_DATES,
SHOW_ABSOLUTE_DATES_KEY,
VIDEO_COMPLEXE_VIEW,
VIDEO_COMPLEXE_VIEW_KEY
VIDEO_COMPLEXE_VIEW_KEY,
LOW_DATA_MODE,
LOW_DATA_MODE_KEY
} from "../config/config";
import BigHeader from "$lib/components/BigHeader.svelte";
import { afterNavigate, disableScrollHandling } from "$app/navigation";
Expand Down Expand Up @@ -52,6 +54,7 @@
SHOW_ABSOLUTE_DATES.set(localStorage.getItem(SHOW_ABSOLUTE_DATES_KEY) === "true");
VIDEO_COMPLEXE_VIEW.set(localStorage.getItem(VIDEO_COMPLEXE_VIEW_KEY) === "true");
LINK_YOUTUBE.set(localStorage.getItem(LINK_YOUTUBE_KEY) === "true");
LOW_DATA_MODE.set(localStorage.getItem(LOW_DATA_MODE_KEY) === "true");
scrollableContent &&
scrollableContent.addEventListener("scroll", () => {
Expand Down

0 comments on commit f7b2223

Please sign in to comment.