From 098be35aade77e505d692558cfb554485b8563db Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Mon, 17 Feb 2025 12:50:33 -0500 Subject: Remember last active channel and navigate there on root load To facilitate PWA behaviour. --- ui/lib/constants.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/lib/constants.js') diff --git a/ui/lib/constants.js b/ui/lib/constants.js index c001f6d..5456414 100644 --- a/ui/lib/constants.js +++ b/ui/lib/constants.js @@ -1,2 +1,4 @@ -export const STORE_KEY_CHANNELS_DATA = 'pilcrow:channelsData'; export const EPOCH_STRING = '1970-01-01T00:00:00Z'; + +export const STORE_KEY_CHANNELS_DATA = 'pilcrow:channelsData'; +export const STORE_KEY_LAST_ACTIVE = 'pilcrow:lastActiveChannel'; -- cgit v1.2.3