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.

ConferenceUrl.js 1.3KB

1234567891011121314151617181920212223242526272829303132
  1. const logger = require('jitsi-meet-logger').getLogger(__filename);
  2. /**
  3. * The modules stores information about the URL used to start the conference and
  4. * provides utility methods for dealing with conference URL and reloads.
  5. */
  6. export default class ConferenceUrl {
  7. /**
  8. * Initializes the module.
  9. *
  10. * @param location an object which stores provides the info about conference
  11. * URL(would be 'window.location' for the Web app). The params below are
  12. * described based on the following example URL:
  13. *
  14. * https://example.com:8888/SomeConference1245?opt=1#somehash
  15. *
  16. * @param location.href full URL with all parameters, would be the whole URL
  17. * from the example string above.
  18. * @param location.host the host part of the URL, 'example.com' from
  19. * the sample URL above.
  20. * @param location.pathname the path part of the URL, would be
  21. * '/SomeConference1245' from the example above.
  22. * @param location.protocol the protocol part of the URL, would be 'https:'
  23. * from the sample URL.
  24. */
  25. constructor(location) {
  26. logger.info(`Stored original conference URL: ${location.href}`);
  27. logger.info(
  28. `Conference URL for invites: ${location.protocol}//${
  29. location.host}${location.pathname}`);
  30. }
  31. }