From 524867b4e2798d6eef5d6b468ea1ff6922b72465 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 1 Nov 2023 14:41:39 -0700 Subject: [PATCH] refactor(web): sessionStorage account & purchase url overrides --- web/helpers/urls.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/helpers/urls.ts b/web/helpers/urls.ts index 3df2d2aaf..52e537dc3 100644 --- a/web/helpers/urls.ts +++ b/web/helpers/urls.ts @@ -1,7 +1,7 @@ -const ACCOUNT = new URL(import.meta.env.VITE_ACCOUNT ?? 'https://account.unraid.net'); +const ACCOUNT = new URL(sessionStorage.getItem('unraidAccount') ?? import.meta.env.VITE_ACCOUNT ?? 'https://account.unraid.net'); const DOCS = new URL('https://docs.unraid.net'); const FORUMS = new URL('https://forums.unraid.net'); -const UNRAID_NET = new URL(localStorage.getItem('craftUrl') ?? import.meta.env.VITE_UNRAID_NET ?? 'https://unraid.net'); +const UNRAID_NET = new URL(sessionStorage.getItem('unraidPurchase') ?? import.meta.env.VITE_UNRAID_NET ?? 'https://unraid.net'); const ACCOUNT_CALLBACK = new URL('c', ACCOUNT); const FORUMS_BUG_REPORT = new URL('/bug-reports', FORUMS);