(no title)
depressedpanda | 6 months ago
The the author expects the side-effect -- navigation to a new page -- of the window.location.href setter to abort the code running below it. This obviously won't happen because there is no return in the first if-statement.
socalgal2|6 months ago
*simplified*, the symantics of "await" are just syntactic sugar
is syntactic sugar for