-
Notifications
You must be signed in to change notification settings - Fork 22.8k
Fix variable redeclaration in url.origin code example #40529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Preview URLs (comment last updated: 2025-07-28 14:35:56) |
Thanks for the PR @jiangying000. I see that the current presentation of the code might be confusing. The likely intention of the original code would have been to show these as standalone examples and to not run all the lines together. It might be better instead to separate these into three JS code blocks. Would you be able to send an update? Thanks! |
Thanks for the feedback. Done. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @jiangying000!
Error:
Uncaught SyntaxError: Identifier 'url' has already been declared