Further Code Cleanup
This commit is contained in:
parent
c7d3c27a30
commit
d7c7db0ef9
1 changed files with 0 additions and 9 deletions
|
@ -3,17 +3,8 @@
|
||||||
<script>
|
<script>
|
||||||
import '../app.pcss';
|
import '../app.pcss';
|
||||||
import Header from './Header.svelte';
|
import Header from './Header.svelte';
|
||||||
import { beforeNavigate } from '$app/navigation';
|
|
||||||
import Footer from './Footer.svelte';
|
import Footer from './Footer.svelte';
|
||||||
|
|
||||||
$effect(() => {
|
|
||||||
beforeNavigate((navigation) => {
|
|
||||||
const servers =
|
|
||||||
navigation.to.url.pathname === '/servers' || navigation.from.url.pathname === '/servers';
|
|
||||||
const services =
|
|
||||||
navigation.to.url.pathname === '/services' || navigation.from.url.pathname === '/services';
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Header />
|
<Header />
|
||||||
|
|
Loading…
Add table
Reference in a new issue