You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

helpers.js 439B

1234567891011121314151617181920
  1. // @flow
  2. /**
  3. * Returns the namespace for all global variables, functions, etc that we need.
  4. *
  5. * @returns {Object} The namespace.
  6. *
  7. * NOTE: After React-ifying everything this should be the only global.
  8. */
  9. export function getJitsiMeetGlobalNS() {
  10. if (!window.JitsiMeetJS) {
  11. window.JitsiMeetJS = {};
  12. }
  13. if (!window.JitsiMeetJS.app) {
  14. window.JitsiMeetJS.app = {};
  15. }
  16. return window.JitsiMeetJS.app;
  17. }