You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because setupXkeysPanel writes data to the device before it returns the Xkeys instance to the caller, it is impossible to attach an error event listener to handle an error thrown from sending the report:
For reference, the observed symptom in this case is that during setup (after firing the call to setupXkeysPanel), the page crashes with an uncaught (in promise) exception:
NotAllowedError: Failed to write the report
occurring due to an underlying call to this WebHID API which rejects:
Because
setupXkeysPanel
writes data to the device before it returns theXkeys
instance to the caller, it is impossible to attach anerror
event listener to handle an error thrown from sending the report:xkeys/packages/webhid/src/methods.ts
Line 74 in 723cf1b
https://github.com/SuperFlyTV/xkeys/blob/master/packages/core/src/xkeys.ts#L341-L350
The fix would be to:
init
processinit
The text was updated successfully, but these errors were encountered: