mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Make WCAG2AA the default standard when adding URL
This commit is contained in:
@@ -8,8 +8,14 @@ module.exports = route;
|
||||
function route (app) {
|
||||
|
||||
app.express.get('/new', function (req, res) {
|
||||
var standards = getStandards().map(function (standard) {
|
||||
if (standard.title === 'WCAG2AA') {
|
||||
standard.selected = true;
|
||||
}
|
||||
return standard;
|
||||
});
|
||||
res.render('new', {
|
||||
standards: getStandards()
|
||||
standards: standards
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user