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
use maplike instead of Object.keys in getStats #851
Conversation
this uses the newer maplike style instead of the older Object.keys()
this uses the newer maplike style instead of the older Object.keys()
this uses the newer maplike style instead of the older Object.keys()
statsString += '<h3>Report '; | ||
statsString += index; | ||
statsString += res.type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the type field really the same as the index from the previous iteration?
(just reassure me....)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah. I wanted to point out that change. I don't think it makes sense to have a numeric index here. I tried the report id but that got very long and ugly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KaptenJansson as samples-maintainer, does this make sense for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it a little confusing that we are adding the type to statsString twice. Maybe add a comment to why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the output format slightly in 486ee45 -- now type, timestamp and id are special
@jan-ivar can you please take a look whether this is what we want to show? |
Lgtm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this uses the maplike syntax instead of the older Object.keys() iteration. Maplike is shimmed by adapter for Chrome.
Code is similar to http://w3c.github.io/webrtc-pc/#example