-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bobby javavscript modernization #221
base: master
Are you sure you want to change the base?
Bobby javavscript modernization #221
Conversation
postRequestID() | ||
}) | ||
|
||
let getVersion = () => { |
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.
Why is this a let
? I don't think we should be reassigning these functions.
(etc for the others)
// Loads and unloads audio stream source | ||
document | ||
.getElementById(PLAY_BUTTON) | ||
.addEventListener('click', () => stream.paused ? play() : pause()) |
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.
Should we refactor this to be jQuery?
$(`#${PLAY_BUTTON}`).click(() => stream.paused ? play() : pause())
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.
Also goes for other uses of document.getElementBy*
No description provided.