Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centralize the way we get configuration flags in BasicExample #1607

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Jun 30, 2020

Description

This PR cleans up the way we get configuration flags in the BasicExample by creating a new global structure to hold them and parsing all of them when the window is loaded.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I have just a single nit-picking comment/question.

window.recordingId = '';
let localStream;
let room;
let recording = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not setting recording and recordingId to window anymore. I think it is good because we don't have a case that needs them as window parameters.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 That was my reasoning but I'll add them for consistency

let room;
let recording = false;
let recordingId = '';
const configFlags = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@lodoyun lodoyun merged commit a7d50bd into lynckia:master Jul 1, 2020
@lodoyun lodoyun deleted the add/refactorBEConfigFlags branch July 1, 2020 10:33
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants