forked from external-repos/pa11y-dashboard
Fix the hideElements option
I broke this with my incorrect advice :D
This commit is contained in:

committed by
Rowan Manning

parent
9df456c7c1
commit
509914d19a
@@ -55,7 +55,7 @@ function route(app) {
|
||||
username: req.body.username || undefined,
|
||||
password: req.body.password || undefined,
|
||||
headers: parsedHeaders || undefined,
|
||||
hideElements: req.body['hide-elements'] || undefined
|
||||
hideElements: req.body.hideElements || undefined
|
||||
};
|
||||
|
||||
app.webservice.tasks.create(newTask, (err, task) => {
|
||||
|
@@ -61,6 +61,7 @@ function route(app) {
|
||||
req.body.wait = req.body.wait || undefined;
|
||||
req.body.username = req.body.username || undefined;
|
||||
req.body.password = req.body.password || undefined;
|
||||
req.body.hideElements = req.body.hideElements || undefined;
|
||||
app.webservice.task(req.params.id).edit(req.body, err => {
|
||||
if (err) {
|
||||
task.name = req.body.name;
|
||||
|
Reference in New Issue
Block a user