Skip to content

Commit

Permalink
making changes to reduce unnecessary changes to updated sample
Browse files Browse the repository at this point in the history
  • Loading branch information
alkwa-msft committed Nov 11, 2023
1 parent 417aef2 commit d20081d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Calling/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const App = (): JSX.Element => {
}
}, [isMobileSession, isLandscapeSession]);

if (isMobileSession && isAppAlreadyRunningInAnotherTab) {
return <PageOpenInAnotherTab />;
}

const supportedBrowser = !isOnIphoneAndNotSafari();
if (!supportedBrowser) {
return <UnsupportedBrowserPage />;
}

if (isMobileSession && isAppAlreadyRunningInAnotherTab) {
return <PageOpenInAnotherTab />;
}

switch (page) {
case 'home': {
document.title = `home - ${WEB_APP_TITLE}`;
Expand Down
1 change: 0 additions & 1 deletion Calling/src/app/utils/AppUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ describe('ContosoUtils tests', () => {
test('createRandomDisplayName should return a valid string for a user id', () =>
expect(createRandomDisplayName()).toBeTruthy());
});
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/
4 changes: 3 additions & 1 deletion Calling/src/app/utils/AppUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ export const isLandscape = (): boolean => window.innerWidth < window.innerHeight

export const navigateToHomePage = (): void => {
window.location.href = window.location.href.split('?')[0];
};
};

export const WEB_APP_TITLE = document.title;

0 comments on commit d20081d

Please sign in to comment.