Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 187 Bytes

currentURL.md

File metadata and controls

10 lines (7 loc) · 187 Bytes

currentURL

Returns the current URL.

Use window.location.href to get current URL.

const currentURL = () => window.location.href;
// currentUrl() -> 'https://google.com'