Skip to content

Commit

Permalink
Fetch host and meeting id from the API
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobmarin committed May 30, 2021
1 parent 2b04f4d commit 2a9483f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,7 @@ const end = async (options) => {
module.exports = {
create,
end,
getHost,
getMeetingID,
getJoinURL,
};
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = {
generateText,
join: async (page, locale, options) => {
const username = generateUsername();
logger.info(`${username}: join ${options.host || config.url.host} at ${options.room || config.url.meeting.name}`);
logger.info(`${username}: join ${api.getHost(options)} at ${api.getMeetingID(options)}`);
const { width, height } = config.browser.window;
await page.setViewport({ width, height });
const url = api.getJoinURL(username, options);
Expand Down

0 comments on commit 2a9483f

Please sign in to comment.