From e326503d290c7bc9a6909f25999c32f9a5d46168 Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Fri, 20 Dec 2024 20:29:22 +0100 Subject: [PATCH] feat: Remove old hack for DefaultRedirectionUrl migration --- src/libs/localStore/storage.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/libs/localStore/storage.ts b/src/libs/localStore/storage.ts index 1f1ec6d15..e4e4ecfa8 100644 --- a/src/libs/localStore/storage.ts +++ b/src/libs/localStore/storage.ts @@ -103,20 +103,6 @@ export const getData = async (name: StorageKey): Promise => { ? (JSON.parse(value) as T) : null } catch (error) { - /* - If we tried to parse the default redirection url and it failed, we return it as is - because previously it was stored as a string where as now it is stored as a stringified string. - - Default redirection url is written often, so active users - will automatically remove the old format from their local storage. - - In some weeks we will be able to remove this compatibility code. - */ - if (name === CozyPersistedStorageKeys.DefaultRedirectionUrl) { - const value = await getItem(name) - return value as T - } - log.error(`Failed to get key "${name}" from persistent storage`, error) return null }