Created
May 17, 2020 16:06
-
-
Save iceener/466e8e7e6dd41674ff8366595afde78b 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 (asLink) { | |
window.location.href = url; | |
} else { | |
window.location.replace(url); | |
} | |
}; | |
redirect('https://overment.com'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment