Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
use fetch syntax from virtuacoplenny
Aaron van Meerten1a5e2763c193
diff --git a/react/features/invite/functions.js b/react/features/invite/functions.jsindex 483c9cbdb4..bdfd80a538 100644--- a/react/features/invite/functions.js+++ b/react/features/invite/functions.js@@ -274,22 +274,19 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-paramsreturn Promise.resolve();}- return new Promise((resolve, reject) => {- $.ajax({- url: `${inviteServiceUrl}?token=${jwt}`,- data: JSON.stringify({- 'invited': inviteItems,- 'url': inviteUrl- }),- dataType: 'json',- contentType: 'application/json', // send as JSON- success: resolve, // called when success is reached- // called when there is an error- error: (jqxhr, textStatus, error) => {- reject(error);- }- });- });+ return fetch(+ `${inviteServiceUrl}?token=${jwt}`,+ {+ body: JSON.stringify({+ 'invited': inviteItems,+ 'url': inviteUrl+ }),+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json'+ }+ }+ );}/**