bump
This commit is contained in:
1 parent
3a1e01b2c6
commit
d7e0a892f3
1 file changed
+3
-4
+3
-4
@@ -12271,8 +12271,8 @@ func (d *Daemon) getFormAccessibilityAudit(tabID, formSelector string, timeout i
|
||||
}
|
||||
|
||||
// JavaScript to analyze forms
|
||||
jsCode := `
|
||||
(function() {
|
||||
// Note: page.Eval() expects an arrow function, not an IIFE
|
||||
jsCode := `() => {
|
||||
try {
|
||||
const forms = document.querySelectorAll('` + selector + `');
|
||||
const result = {
|
||||
@@ -12338,8 +12338,7 @@ func (d *Daemon) getFormAccessibilityAudit(tabID, formSelector string, timeout i
|
||||
forms: []
|
||||
};
|
||||
}
|
||||
})();
|
||||
`
|
||||
}`
|
||||
|
||||
// Execute JavaScript with timeout
|
||||
var resultData interface{}
|
||||
|
||||
Reference in new issue
Block a user