This commit is contained in:
2021-09-06 18:11:51 +02:00
parent 296536d188
commit fdffe5fcdd
3 changed files with 11 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
<script lang="ts">
import PackageLists from "./routes/PackageLists.svelte";
import Home from "./routes/Home.svelte";
$: {
const path = window.location.pathname;
@@ -12,7 +13,7 @@
let component;
if (path == "/") {
window.location.replace("/lists/");
compontent = Home;
} else if (path == "/lists/") {
console.log("Routing to package lists");
component = PackageLists;