From d7e0a892f380eb6a6c5c14bcde1a90b48f38228f Mon Sep 17 00:00:00 2001 From: Josh at WLTechBlog Date: Fri, 3 Oct 2025 15:26:46 -0500 Subject: [PATCH] bump --- daemon/daemon.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index aa97b48..07f2004 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -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{}