瀏覽代碼

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,8 +12,8 @@ export function searchPeople(serviceUrl, jwt, text) {
12 12
     const queryTypes = '["conferenceRooms","user","room"]';
13 13
 
14 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 17
         response => resolve(response)
18 18
         ).fail((jqxhr, textStatus, error) =>
19 19
             reject(error)

Loading…
取消
儲存