-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1551-Make Use of RedirectPage Logic #3910
1551-Make Use of RedirectPage Logic #3910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
|
||
function urlParam(name) { | ||
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); | ||
return results[1] || 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the results[1] || 0;
line do? It needs a comment probably
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oscardssmith sure, you can include this comment for the function:
Returns the value for the specified parameter, or 0 if the parameter is not found in the url string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Closing in favor of #3929. The branch was behind develop. |
Related Issues
Pull Request Checklist