Skip to content

Restores the window.catcher fallback

Choose a tag to compare

@awangga awangga released this 11 Sep 22:15
· 91 commits to main since this release

websocket.js again calls a global window.catcher(message) when no onMessage callback is passed. v0.0.4 replaced that global with an explicit callback parameter, which broke the pattern documented for WhatsAuth. Both styles now work: pass onMessage if you have one, otherwise define window.catcher.