Re:30 seconds of code: Curated list of useful JavaScript sni...
by danso on Monday December 11, 2017 @06:11PM
(#15901607)
Yeah that was my question. I was racking my head thinking of when this window.location.href wouldn't refer to what a program would want given how it almost acts like a global function in some ways (e.g. `window.location.href="http://example.com"` can be used to change the page). Maybe currentUrl is supposed to be a wrapper just incase window.location.href changes (which seems highly unlikely but again, I'm out of the loop with modern JS).
[ Parent
| on HN ]
There are no comments on this comment yet.