Makes numbers clickable on the more numbers page when opened on mobile.
This commit is contained in:
parent
5cc01b074e
commit
0ec4e6a805
|
@ -8,16 +8,19 @@ import { i18next } from '../../../base/i18n';
|
||||||
import { DialInSummary } from '../dial-in-summary';
|
import { DialInSummary } from '../dial-in-summary';
|
||||||
|
|
||||||
import NoRoomError from './NoRoomError';
|
import NoRoomError from './NoRoomError';
|
||||||
|
import { Platform } from '../../../base/react';
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const { room } = parseURLParams(window.location, true, 'search');
|
const { room } = parseURLParams(window.location, true, 'search');
|
||||||
|
const OS = Platform.OS;
|
||||||
|
const isUsingMobileBrowser = OS === 'android' || OS === 'ios';
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<I18nextProvider i18n = { i18next }>
|
<I18nextProvider i18n = { i18next }>
|
||||||
{ room
|
{ room
|
||||||
? <DialInSummary
|
? <DialInSummary
|
||||||
className = 'dial-in-page'
|
className = 'dial-in-page'
|
||||||
clickableNumbers = { false }
|
clickableNumbers = { isUsingMobileBrowser }
|
||||||
room = { room } />
|
room = { room } />
|
||||||
: <NoRoomError className = 'dial-in-page' /> }
|
: <NoRoomError className = 'dial-in-page' /> }
|
||||||
</I18nextProvider>,
|
</I18nextProvider>,
|
||||||
|
|
Loading…
Reference in New Issue