Restore click handler logging + use logInfo for errors (SES-safe)

SES lockdown may suppress console.error. Use logInfo for error
reporting since we know it works ([sx-ref] prefix visible).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 21:57:44 +00:00
parent 3d191099e0
commit d1a47e1e52
3 changed files with 6 additions and 4 deletions

View File

@@ -2515,7 +2515,7 @@ PLATFORM_ORCHESTRATION_JS = """
if (opts.once || opts["once"]) o.once = true;
}
el.addEventListener(event, function(e) {
try { fn(e); } catch (err) { console.error("[sx-ref] event handler error:", event, err); }
try { fn(e); } catch (err) { logInfo("EVENT ERROR: " + event + " " + (err && err.message ? err.message : err)); console.error("[sx-ref] event handler error:", event, err); }
}, o);
}