diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-02-24 12:27:24 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-02-24 12:27:24 -0500 |
| commit | f2c415dd7eb1cb68e18e96dfd70460f8972ee9df (patch) | |
| tree | 78afeed891a31dadedd8e506b0d523959e7f8be2 /ui/routes/(app)/+layout.svelte | |
| parent | 770400bcb5953dcb762b5c80d90e8e26e778b504 (diff) | |
npm run fmt
Diffstat (limited to 'ui/routes/(app)/+layout.svelte')
| -rw-r--r-- | ui/routes/(app)/+layout.svelte | 18 |
1 files changed, 10 insertions, 8 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(() => { |
