Skip to content

Commit

Permalink
fix: android outlook integration [WPB-3493] (#15502)
Browse files Browse the repository at this point in the history
* chore: testing for browser name

* fix: add support for android browser

* chore: add extra browser names to var
  • Loading branch information
tlebon authored Aug 23, 2023
1 parent ec80fcb commit 1529aa2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/script/auth/module/action/RuntimeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ import type {ThunkAction} from '../reducer';
export class RuntimeAction {
checkSupportedBrowser = (): ThunkAction<void> => {
return (dispatch, getState, {getConfig}) => {
const androidBrowser = 'android browser';
const outlookBrowser = 'unknown';
const isMobileSupportedBrowser = () => {
return Runtime.isMobileOS() && (Runtime.isSafari() || Runtime.isChrome());
return (
Runtime.isMobileOS() &&
(Runtime.isSafari() || Runtime.isChrome() || Runtime.getBrowserName() === androidBrowser)
);
};
const isOutlookApp = () => {
return Runtime.getBrowserName() === 'unknown';
return Runtime.getBrowserName() === outlookBrowser;
};
const isAuthorizationFlow = () => location?.search?.includes(QUERY_KEY.SCOPE) ?? false;
if (
Expand Down

0 comments on commit 1529aa2

Please sign in to comment.