summaryrefslogtreecommitdiff
path: root/ui/routes
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-02-24 12:27:24 -0500
committerOwen Jacobson <owen@grimoire.ca>2025-02-24 12:27:24 -0500
commitf2c415dd7eb1cb68e18e96dfd70460f8972ee9df (patch)
tree78afeed891a31dadedd8e506b0d523959e7f8be2 /ui/routes
parent770400bcb5953dcb762b5c80d90e8e26e778b504 (diff)
npm run fmt
Diffstat (limited to 'ui/routes')
-rw-r--r--ui/routes/(app)/+layout.svelte18
-rw-r--r--ui/routes/+layout.svelte1
2 files changed, 10 insertions, 9 deletions
diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 572a551..67fea64 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -8,7 +8,14 @@
import TinyGesture from 'tinygesture';
import { boot, subscribeToEvents } from '$lib/apiServer';
- import { channelsList, channelsMetaList, currentUser, logins, messages, onEvent } from '$lib/store';
+ import {
+ channelsList,
+ channelsMetaList,
+ currentUser,
+ logins,
+ messages,
+ onEvent
+ } from '$lib/store';
import ChannelList from '$lib/components/ChannelList.svelte';
import CreateChannelForm from '$lib/components/CreateChannelForm.svelte';
@@ -117,16 +124,11 @@
const STORE_KEY_LAST_ACTIVE = 'pilcrow:lastActiveChannel';
function getLastActiveChannel() {
- return (
- browser && JSON.parse(localStorage.getItem(STORE_KEY_LAST_ACTIVE))
- );
+ return browser && JSON.parse(localStorage.getItem(STORE_KEY_LAST_ACTIVE));
}
function setLastActiveChannel(channelId) {
- browser && localStorage.setItem(
- STORE_KEY_LAST_ACTIVE,
- JSON.stringify(channelId)
- );
+ browser && localStorage.setItem(STORE_KEY_LAST_ACTIVE, JSON.stringify(channelId));
}
afterNavigate(() => {
diff --git a/ui/routes/+layout.svelte b/ui/routes/+layout.svelte
index 5bccd2f..6c19a95 100644
--- a/ui/routes/+layout.svelte
+++ b/ui/routes/+layout.svelte
@@ -6,7 +6,6 @@
import logo from '$lib/assets/logo.png';
import { currentUser } from '$lib/store';
-
let pageContext = $state({
showMenu: false
});