Skip to content

Commit

Permalink
Fix references to JS.browserOrNode so mocks work
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Sep 21, 2020
1 parent 1300192 commit ed5cf13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/auth/src/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ export class AuthClass {
resolve: () => void,
reject: (reason?: any) => void
) {
const { isBrowser } = browserOrNode();
const { isBrowser } = JS.browserOrNode();

if (isBrowser) {
this.oAuthSignOutRedirectOrReject(reject);
Expand Down Expand Up @@ -1895,7 +1895,7 @@ export class AuthClass {
);

const currentUrl =
URL || (browserOrNode().isBrowser ? window.location.href : '');
URL || (JS.browserOrNode().isBrowser ? window.location.href : '');

const hasCodeOrError = !!(parse(currentUrl).query || '')
.split('&')
Expand Down

0 comments on commit ed5cf13

Please sign in to comment.