Skip to content
Snippets Groups Projects
Commit 27d96e0d authored by echicken's avatar echicken :chicken:
Browse files

This isn't a 'class', so call it 'request', and include return-style last line.

parent 5ef3b1c9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
// Helpers for http_request // Helpers for http_request
var Request = { var request = {
// Query parameter p exists // Query parameter p exists
has_param: function (p) { has_param: function (p) {
return (Array.isArray(http_request.query[p]) && http_request.query[p].length); return (Array.isArray(http_request.query[p]) && http_request.query[p].length);
...@@ -22,3 +22,5 @@ var Request = { ...@@ -22,3 +22,5 @@ var Request = {
} }
} }
}; };
request;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment