Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: open accounts portal in a new tab

httpjamesm609e4d1207f1
diff --git a/web/apps/photos/src/components/Sidebar/UtilitySection.tsx b/web/apps/photos/src/components/Sidebar/UtilitySection.tsx
index 8e00873c76..454ef55bfe 100644
--- a/web/apps/photos/src/components/Sidebar/UtilitySection.tsx
+++ b/web/apps/photos/src/components/Sidebar/UtilitySection.tsx
@@ -103,11 +103,13 @@ export default function UtilitySection({ closeSidebar }) {
const accountsToken = await getAccountsToken();
- window.location.href = `${getAccountsURL()}${
- ACCOUNTS_PAGES.ACCOUNT_HANDOFF
- }?package=${CLIENT_PACKAGE_NAMES.get(
- APPS.PHOTOS,
- )}&token=${accountsToken}`;
+ window.open(
+ `${getAccountsURL()}${
+ ACCOUNTS_PAGES.ACCOUNT_HANDOFF
+ }?package=${CLIENT_PACKAGE_NAMES.get(
+ APPS.PHOTOS,
+ )}&token=${accountsToken}`,
+ );
} catch (e) {
logError(e, "failed to redirect to accounts page");
}