|
@@ -71,37 +71,10 @@ function getAnalyticsAttributesFromOptions(options) {
|
71
|
71
|
return attributes;
|
72
|
72
|
}
|
73
|
73
|
|
74
|
|
-/**
|
75
|
|
- * Tries to deal with the following problem: {@code JitsiMeetJS} is not only
|
76
|
|
- * this module, it's also a global (i.e. attached to {@code window}) namespace
|
77
|
|
- * for all globals of the projects in the Jitsi Meet family. If lib-jitsi-meet
|
78
|
|
- * is loaded through an HTML {@code script} tag, {@code JitsiMeetJS} will
|
79
|
|
- * automatically be attached to {@code window} by webpack. Unfortunately,
|
80
|
|
- * webpack's source code does not check whether the global variable has already
|
81
|
|
- * been assigned and overwrites it. Which is OK for the module
|
82
|
|
- * {@code JitsiMeetJS} but is not OK for the namespace {@code JitsiMeetJS}
|
83
|
|
- * because it may already contain the values of other projects in the Jitsi Meet
|
84
|
|
- * family. The solution offered here works around webpack by merging all
|
85
|
|
- * existing values of the namespace {@code JitsiMeetJS} into the module
|
86
|
|
- * {@code JitsiMeetJS}.
|
87
|
|
- *
|
88
|
|
- * @param {Object} module - The module {@code JitsiMeetJS} (which will be
|
89
|
|
- * exported and may be attached to {@code window} by webpack later on).
|
90
|
|
- * @private
|
91
|
|
- * @returns {Object} - A {@code JitsiMeetJS} module which contains all existing
|
92
|
|
- * value of the namespace {@code JitsiMeetJS} (if any).
|
93
|
|
- */
|
94
|
|
-function _mergeNamespaceAndModule(module) {
|
95
|
|
- return (
|
96
|
|
- typeof window.JitsiMeetJS === 'object'
|
97
|
|
- ? Object.assign({}, window.JitsiMeetJS, module)
|
98
|
|
- : module);
|
99
|
|
-}
|
100
|
|
-
|
101
|
74
|
/**
|
102
|
75
|
* The public API of the Jitsi Meet library (a.k.a. {@code JitsiMeetJS}).
|
103
|
76
|
*/
|
104
|
|
-export default _mergeNamespaceAndModule({
|
|
77
|
+export default {
|
105
|
78
|
|
106
|
79
|
version: '{#COMMIT_HASH#}',
|
107
|
80
|
|
|
@@ -580,4 +553,4 @@ export default _mergeNamespaceAndModule({
|
580
|
553
|
ScriptUtil,
|
581
|
554
|
browser
|
582
|
555
|
}
|
583
|
|
-});
|
|
556
|
+};
|