From f2c415dd7eb1cb68e18e96dfd70460f8972ee9df Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 24 Feb 2025 12:27:24 -0500 Subject: npm run fmt --- ui/routes/(app)/+layout.svelte | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'ui/routes/(app)') 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(() => { -- cgit v1.2.3