feat: open accounts portal in a new tab
This commit is contained in:
parent
d4d2c68299
commit
609e4d1207
1 changed files with 7 additions and 5 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue