feat: open accounts portal in a new tab

This commit is contained in:
httpjamesm 2024-03-12 13:56:59 -04:00
parent d4d2c68299
commit 609e4d1207
No known key found for this signature in database

View file

@ -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");
}