Skip to content

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

feat(custom) provide a custom.js entry point for custom javascript (#17524)

Philipp Hancke2e8ff2834e93
diff --git a/app.js b/app.js
index 4505556f24..01ea5b7c8a 100644
--- a/app.js
+++ b/app.js
@@ -68,3 +68,8 @@ window.APP = {
// the execution of the Web app to start from app.js in order to reduce the
// complexity of the beginning step.
import './react';
+
+// Let users / forks implement custom JS logic that gets bundled.
+// Uses webpackMode: 'eager' so it is evaluates as part of the next microtask.
+import(/* webpackMode: 'eager' */ './custom.js');
+
diff --git a/custom.js b/custom.js
new file mode 100644
index 0000000000..405b399248
--- /dev/null
+++ b/custom.js
@@ -0,0 +1,4 @@
+// This file allows implementing custom javascript. window.APP is available at this point.
+// A couple of blank linkes follow to avoid merge conflicts.
+
+