From 75ab890707aed167d2b2cbd0b711c1195844e96c Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 13 Aug 2019 16:32:14 +0300 Subject: [PATCH] Uses the wrapped fetch from base/util. --- .../components/dial-in-summary/web/DialInSummary.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/react/features/invite/components/dial-in-summary/web/DialInSummary.js b/react/features/invite/components/dial-in-summary/web/DialInSummary.js index 6da706d54..264c5515d 100644 --- a/react/features/invite/components/dial-in-summary/web/DialInSummary.js +++ b/react/features/invite/components/dial-in-summary/web/DialInSummary.js @@ -3,6 +3,7 @@ import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; +import { doGetJSON } from '../../../../base/util'; import ConferenceID from './ConferenceID'; import NumbersList from './NumbersList'; @@ -176,11 +177,7 @@ class DialInSummary extends Component { return Promise.resolve(); } - const conferenceIDURL - = `${dialInConfCodeUrl}?conference=${room}@${mucURL}`; - - return fetch(conferenceIDURL) - .then(response => response.json()) + return doGetJSON(`${dialInConfCodeUrl}?conference=${room}@${mucURL}`) .catch(() => Promise.reject(this.props.t('info.genericError'))); } @@ -206,11 +203,8 @@ class DialInSummary extends Component { if (room && mucURL) { URLSuffix = `?conference=${room}@${mucURL}`; } - const conferenceIDURL - = `${dialInNumbersUrl}${URLSuffix}`; - return fetch(conferenceIDURL) - .then(response => response.json()) + return doGetJSON(`${dialInNumbersUrl}${URLSuffix}`) .catch(() => Promise.reject(this.props.t('info.genericError'))); }