-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up HTML js script so its more consistent (#1591)
While looking through some other stuff, I noticed my IDE had some recommendations about the JavaScript, and I spotted a few other refactors I think are worth landing, so I did a bit of a cleanup. At a high level the changes are about being consistent and improving readability - I've purposely tried to keep this light since ultimately the amount of work being done is very small and the whole file gets included in the binary so e.g. I've not refactored the order that we set some variables even though they could be made technically faster. Overall, this reduces the size of the file by a couple of hundred bytes which is technically a win😅
- Loading branch information
Showing
1 changed file
with
45 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters