gatteo / react-jitsi

React and Typescript component to include Jitsi Meet with ease
MIT License
107 stars 39 forks source link

Load external api script from provided domain #57

Closed ghost closed 1 year ago

ghost commented 2 years ago

This change improves the auto-import of the Jitsi API script file, which was previously hardcoded and loaded from https://meet.jit.si/external_api.js. This could cause problems with differing versions or a content security policy when using the library with a custom Jitsi Meet instance via the domain prop.

The script is now loaded from the domain specified in the prop with a fallback to the previous url should the script file not be available