Created
April 23, 2019 05:51
-
-
Save BombekeQuinten/3efd3fd40527faab429284981d8fae8c 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
| function isValid(url) { | |
| return /^http(s)?:\/\/[0-9a-z.-]+\.security.com$/gi.test(url); | |
| } | |
| var url = window.location.hash.substr(1); | |
| if (isValid(url)) { | |
| window.location = url; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment