Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### currentURL
|
||||
---
|
||||
title: currentURL
|
||||
tags: browser,url,beginner
|
||||
---
|
||||
|
||||
Returns the current URL.
|
||||
|
||||
@ -10,4 +13,4 @@ const currentURL = () => window.location.href;
|
||||
|
||||
```js
|
||||
currentURL(); // 'https://google.com'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user