update snippets 16-31
This commit is contained in:
committed by
Agamemnon Zorbas
parent
b2cffa6858
commit
014a77224c
@ -6,5 +6,8 @@ Use `window.location.href` to get current URL.
|
||||
|
||||
```js
|
||||
const currentURL = () => window.location.href;
|
||||
// currentUrl() -> 'https://google.com'
|
||||
```
|
||||
|
||||
```js
|
||||
currentUrl() -> 'https://google.com'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user