소스 검색

fix(dial-in): specify url root for more numbers link

This gets around the issue of a cdn page being opened.
master
Leonard Kim 7 년 전
부모
커밋
b00aaf1de7
1개의 변경된 파일14개의 추가작업 그리고 5개의 파일을 삭제
  1. 14
    5
      react/features/invite/components/info-dialog/InfoDialog.web.js

+ 14
- 5
react/features/invite/components/info-dialog/InfoDialog.web.js 파일 보기

261
         return null;
261
         return null;
262
     }
262
     }
263
 
263
 
264
+    /**
265
+     * Generates the URL for the static dial in info page.
266
+     *
267
+     * @private
268
+     * @returns {string}
269
+     */
270
+    _getDialInfoPageURL() {
271
+        return `${window.location.origin}/static/dialInInfo.html?room=${
272
+            encodeURIComponent(this.props._conferenceName)}`;
273
+    }
274
+
264
     /**
275
     /**
265
      * Creates a message describing how to dial in to the conference.
276
      * Creates a message describing how to dial in to the conference.
266
      *
277
      *
268
      * @returns {string}
279
      * @returns {string}
269
      */
280
      */
270
     _getTextToCopy() {
281
     _getTextToCopy() {
271
-        const { _conferenceName, t } = this.props;
282
+        const { t } = this.props;
272
 
283
 
273
         let invite = t('info.inviteURL', {
284
         let invite = t('info.inviteURL', {
274
             url: this.props._inviteURL
285
             url: this.props._inviteURL
280
                 conferenceID: this.props._dialIn.conferenceID
291
                 conferenceID: this.props._dialIn.conferenceID
281
             });
292
             });
282
             const moreNumbers = t('info.invitePhoneAlternatives', {
293
             const moreNumbers = t('info.invitePhoneAlternatives', {
283
-                url: `${window.location.origin}/static/dialInInfo.html?room=${
284
-                    encodeURIComponent(_conferenceName)}`
294
+                url: this._getDialInfoPageURL()
285
             });
295
             });
286
 
296
 
287
             invite = `${invite}\n${dial}\n${moreNumbers}`;
297
             invite = `${invite}\n${dial}\n${moreNumbers}`;
377
                     phoneNumber = { this.state.phoneNumber } />
387
                     phoneNumber = { this.state.phoneNumber } />
378
                 <a
388
                 <a
379
                     className = 'more-numbers'
389
                     className = 'more-numbers'
380
-                    href = { `static/dialInInfo.html?room=${
381
-                        encodeURIComponent(this.props._conferenceName)}` }
390
+                    href = { this._getDialInfoPageURL() }
382
                     rel = 'noopener noreferrer'
391
                     rel = 'noopener noreferrer'
383
                     target = '_blank'>
392
                     target = '_blank'>
384
                     { this.props.t('info.moreNumbers') }
393
                     { this.props.t('info.moreNumbers') }

Loading…
취소
저장