Last active
July 15, 2020 04:34
-
-
Save iceener/8a4198625f327c2f98fadec834bd4903 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Redirect to... | |
const redirect = (url, replace = false) => { | |
if (replace) { | |
return window.location.replace(url); | |
} | |
window.location.href = url; | |
}; | |
redirect('https://overment.com'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment