simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Oct 23 19:00:16 BST 2022
TL;DR:
a62217e js: Use less-modern syntax in update_pixel_ratio
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2022-10-23 19:00:16
commit a62217e9b42e81a66369f91600991944d148e0a9
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=a62217e9b42e81a66369f91600991944d148e0a9;hp=0254a163ff002aca56a6e08d7a5799f34cf48d94
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Sun Oct 23 11:15:31 2022 +0100
js: Use less-modern syntax in update_pixel_ratio
Stealing code from the MDN has the consequence that it uses shiny ES6
features like "const", "let", and "=>". This looks a bit odd among
the more conservative style of the rest of Puzzles, so I've
downgraded it to "var" and "function". I'll let the template string
stay because that actually helps readability.
emccpre.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the tartarus-commits
mailing list