浏览代码

fix(add-people): remove line break from searchPeople request

Chrome has deprecated line breaks in requests. The template
literal used for the searchPeople url has a line breaks. Instead
of line breaking the request url, concatenate it together.
master
Leonard Kim 8 年前
父节点
当前提交
1ad614e812
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      react/features/invite/functions.js

+ 2
- 2
react/features/invite/functions.js 查看文件

12
     const queryTypes = '["conferenceRooms","user","room"]';
12
     const queryTypes = '["conferenceRooms","user","room"]';
13
 
13
 
14
     return new Promise((resolve, reject) => {
14
     return new Promise((resolve, reject) => {
15
-        $.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}
16
-            &queryTypes=${queryTypes}&jwt=${jwt}`,
15
+        $.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}`
16
+            + `&queryTypes=${queryTypes}&jwt=${jwt}`,
17
         response => resolve(response)
17
         response => resolve(response)
18
         ).fail((jqxhr, textStatus, error) =>
18
         ).fail((jqxhr, textStatus, error) =>
19
             reject(error)
19
             reject(error)

正在加载...
取消
保存