Files
Recordly/electron
webadderall 99764ac5f6 Fix Windows cursor telemetry: add uiohook-napi to asarUnpack and harden export resolution
uiohook-napi ships a native .node binary that cannot be loaded from
inside an .asar archive. Without asarUnpack, nodeRequire('uiohook-napi')
fails silently in packaged builds, the hook never starts, and cursor
telemetry stays empty on Windows.

Changes:
- Add node_modules/uiohook-napi/** to asarUnpack so the native binary
  is extracted to app.asar.unpacked/ where require() can reach it
- Extend loadUiohookModule() fallback chain to handle variant export
  shapes across platform builds (uIOhook / uiohook / Uiohook / default)
- Add normalizeHookMouseButton() and getHookMouseButton() helpers for
  robust cross-platform button code handling (codes 38/39 variants)
- Add diagnostic log to startInteractionCapture() to surface hook load
  state in future debug sessions
2026-03-14 13:31:46 +11:00
..