Skip to content

Commit

Permalink
Update a function to ES6 Arrow Function in js/toolbar.js (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
daksh4469 authored Jan 17, 2021
1 parent 539578c commit a90a12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class Toolbar {
runSlowlyIcon.style.display = "none";
}

runSlowlyIcon.onclick = function() {
runSlowlyIcon.onclick = () => {
onclick();
docById("stop").style.color = stopIconColorWhenPlaying;
};
Expand Down

0 comments on commit a90a12e

Please sign in to comment.