From 770400bcb5953dcb762b5c80d90e8e26e778b504 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Mon, 24 Feb 2025 12:26:20 -0500
Subject: Move constant closer to usage

---
 ui/routes/(app)/+layout.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 20620d4..572a551 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -8,7 +8,6 @@
   import TinyGesture from 'tinygesture';
 
   import { boot, subscribeToEvents } from '$lib/apiServer';
-  import { STORE_KEY_LAST_ACTIVE } from '$lib/constants';
   import { channelsList, channelsMetaList, currentUser, logins, messages, onEvent } from '$lib/store';
   import ChannelList from '$lib/components/ChannelList.svelte';
   import CreateChannelForm from '$lib/components/CreateChannelForm.svelte';
@@ -115,6 +114,8 @@
     return '';
   }
 
+  const STORE_KEY_LAST_ACTIVE = 'pilcrow:lastActiveChannel';
+
   function getLastActiveChannel() {
     return (
       browser && JSON.parse(localStorage.getItem(STORE_KEY_LAST_ACTIVE))
-- 
cgit v1.2.3

