Skip to content

Commit

Permalink
Merge pull request #53 from moneytree/AKL-656
Browse files Browse the repository at this point in the history
[AKL-656] fix for Safari 14 issue
  • Loading branch information
mt-rory authored Nov 27, 2020
2 parents 02fcb53 + 9fb69d0 commit e211ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/__tests__/authorize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('api', () => {
configs: generateConfigs(),
});
const url = `${MY_ACCOUNT_DOMAINS.production}/oauth/authorize?${query}`;
expect(open).toBeCalledWith(url, '_self');
expect(open).toBeCalledWith(url, '_self', 'noreferrer');
});

test('with options', () => {
Expand Down Expand Up @@ -101,7 +101,7 @@ describe('api', () => {
configs: generateConfigs(),
});
const url = `${MY_ACCOUNT_DOMAINS.production}/oauth/authorize?${query}`;
expect(open).toBeCalledWith(url, '_self');
expect(open).toBeCalledWith(url, '_self', 'noreferrer');
});

test('without window', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/api/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default function authorize(

window.open(
`${MY_ACCOUNT_DOMAINS[mode]}/oauth/authorize?${queryString}`,
getIsTabValue(isNewTab)
getIsTabValue(isNewTab),
'noreferrer'
);
}

0 comments on commit e211ac4

Please sign in to comment.