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.
pull/1771/head jitsi-meet_2237
Leonard Kim 8 years ago committed by yanas
parent 21957c8bf2
commit 1ad614e812
  1. 4
      react/features/invite/functions.js

@ -12,8 +12,8 @@ export function searchPeople(serviceUrl, jwt, text) {
const queryTypes = '["conferenceRooms","user","room"]';
return new Promise((resolve, reject) => {
$.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}
&queryTypes=${queryTypes}&jwt=${jwt}`,
$.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}`
+ `&queryTypes=${queryTypes}&jwt=${jwt}`,
response => resolve(response)
).fail((jqxhr, textStatus, error) =>
reject(error)

Loading…
Cancel
Save