Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
- `nonce`: The challenge that the user is signing.
- `callbackUrl`: The URL that the wallet will call with the signature.
How to verify the signature: https://docs.near.org/build/web3-apps/backend/#3-verify-the-signature

- Add get/set methods for `window.location.hash`. `Set` method only accepts an empty string as a value.
- Add methods to get `window.location.href`, `window.location.origin`, `window.location.pathname` for accessing gateway and component names.

## 2.6.1

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/lib/vm/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,15 @@ export default class VM {
...this.globalFunctions,
window: {
location: {
get href() {
return window.location.href
},
get origin() {
return window.location.origin
},
get pathname() {
return window.location.pathname
},
get hash() {
return window.location.hash
},
Expand Down