Created
June 2, 2021 14:32
-
-
Save scsskid/14dda5f8680045e249c2ad35abcfa682 to your computer and use it in GitHub Desktop.
[getCurrentUrl]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//src: https://github.com/swup/swup/blob/master/src/helpers/getCurrentUrl.js | |
const getCurrentUrl = () => { | |
return window.location.pathname + window.location.search; | |
}; | |
export default getCurrentUrl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment