Skip to content

Commit

Permalink
fix: Add base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Oct 5, 2023
1 parent f64c67b commit f3fd133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import "chota/dist/chota.min.css";
import "boxicons/css/boxicons.min.css";
import { appStore } from "$lib/store";
import { base } from "$app/paths";
/*global __APP_VERSION__*/
const version: string = __APP_VERSION__;
const MODE = {
SINGLE: "Switch to ROLIE-feed",
FEED: "Switch to single view"
};
$: mode = $appStore.ui.appMode;
$: switchToRoute = mode === MODE.SINGLE ? "/feed" : "/";
$: switchToRoute = mode === MODE.SINGLE ? `${base}/feed` : `${base}/`;
const disable = (e: Event) => {
e.preventDefault();
};
Expand Down

0 comments on commit f3fd133

Please sign in to comment.