Browse Source

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 years ago
parent
commit
1ad614e812
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      react/features/invite/functions.js

+ 2
- 2
react/features/invite/functions.js View File

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)

Loading…
Cancel
Save