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.
This commit is contained in:
Leonard Kim 2017-07-11 13:23:12 -07:00 committed by yanas
parent 21957c8bf2
commit 1ad614e812
1 changed files with 2 additions and 2 deletions

View File

@ -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)