From 1ad614e812d0b71821897a0f212547a2959d8cdc Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 11 Jul 2017 13:23:12 -0700 Subject: [PATCH] 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. --- react/features/invite/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js index a96829565a..b05cce57a0 100644 --- a/react/features/invite/functions.js +++ b/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)