Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix analytics loadscript call to match the new function signature

daimoc79cab9e7df58
diff --git a/react/features/base/util/loadScript.web.ts b/react/features/base/util/loadScript.web.ts
index dbdb3755b3..574e5e0146 100644
--- a/react/features/base/util/loadScript.web.ts
+++ b/react/features/base/util/loadScript.web.ts
@@ -8,10 +8,11 @@
export function loadScript(url: string): Promise<void> {
return new Promise((resolve, reject) =>
JitsiMeetJS.util.ScriptUtil.loadScript(
- url,
- /* async */ true,
- /* prepend */ false,
- /* relativeURL */ false,
- /* loadCallback */ resolve,
- /* errorCallback */ reject));
+ { src: url,
+ async: true,
+ prepend: false,
+ relativeURL: false,
+ loadCallback: resolve,
+ errorCallback: reject
+ }))
}