Makes numbers clickable on the more numbers page when opened on mobile.

This commit is contained in:
damencho 2019-05-03 10:49:50 +01:00 committed by Дамян Минков
parent 5cc01b074e
commit 0ec4e6a805
1 changed files with 4 additions and 1 deletions

View File

@ -8,16 +8,19 @@ import { i18next } from '../../../base/i18n';
import { DialInSummary } from '../dial-in-summary';
import NoRoomError from './NoRoomError';
import { Platform } from '../../../base/react';
document.addEventListener('DOMContentLoaded', () => {
const { room } = parseURLParams(window.location, true, 'search');
const OS = Platform.OS;
const isUsingMobileBrowser = OS === 'android' || OS === 'ios';
ReactDOM.render(
<I18nextProvider i18n = { i18next }>
{ room
? <DialInSummary
className = 'dial-in-page'
clickableNumbers = { false }
clickableNumbers = { isUsingMobileBrowser }
room = { room } />
: <NoRoomError className = 'dial-in-page' /> }
</I18nextProvider>,