We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following can be simplified, from this:
pagecrypt/web/decrypt.ts
Lines 41 to 44 in 4571f66
To this:
const parts = location.href.split('#') pwd.value = parts[1] history.replaceState(null, '', parts[0])
This works because location.href.split('#') always returns the href without the URL hash, no matter if it is present or not.
location.href.split('#')
The text was updated successfully, but these errors were encountered:
9c37b65
No branches or pull requests
The following can be simplified, from this:
pagecrypt/web/decrypt.ts
Lines 41 to 44 in 4571f66
To this:
This works because
location.href.split('#')
always returns the href without the URL hash, no matter if it is present or not.The text was updated successfully, but these errors were encountered: