From 9c731da0787003c281ba74e286da5766c7bce215 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:09:22 -0700 Subject: [PATCH] prefix local storage key with `v2` Signed-off-by: zumbiepig <121742281+zumbiepig@users.noreply.github.com> --- src/resources/scripts/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index f5047c8..01d2477 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -411,7 +411,7 @@ const article = { const storage = { local: { get: function (key: string) { - const item = localStorage.getItem('minexlauncher'); + const item = localStorage.getItem('minexlauncher-v2'); if (item !== null) { const json = JSON.parse(base64Gzip.decompress(item)); if (json[key] !== undefined) { @@ -425,7 +425,7 @@ const storage = { key: string, value: string | number | object | boolean | null | undefined, ) { - const item = localStorage.getItem('minexlauncher'); + const item = localStorage.getItem('minexlauncher-v2'); if (item === null) { const json: Record = {}; json[key] = value; @@ -445,7 +445,7 @@ const storage = { }, session: { get: function (key: string) { - const item = sessionStorage.getItem('minexlauncher'); + const item = sessionStorage.getItem('minexlauncher-v2'); if (item !== null) { const json = JSON.parse(base64Gzip.decompress(item)); if (json[key] !== undefined) { @@ -459,7 +459,7 @@ const storage = { key: string, value: string | number | object | boolean | null | undefined, ) { - const item = sessionStorage.getItem('minexlauncher'); + const item = sessionStorage.getItem('minexlauncher-v2'); if (item === null) { const json: Record = {}; json[key] = value;