fix: dont cause redirect loop due to session restore (#1181)

* fix: dont cause redirect loop due to session restore

* back to `state` in docs

* use referer to determine first injection

* bring bzck disconnect on nav

* revert some changes
This commit is contained in:
Pedro S. Lopez
2022-02-08 22:33:20 -04:00
committed by GitHub
parent 93c8a2b05e
commit 20f3bc7a8b
2 changed files with 12 additions and 8 deletions

2
index.d.ts vendored
View File

@@ -166,7 +166,7 @@ declare namespace WAWebJS {
/** Emitted when the client has been disconnected */
on(event: 'disconnected', listener: (
/** reason that caused the disconnect */
reason: WAState | "NAVIGATED"
reason: WAState | "NAVIGATION"
) => void): this
/** Emitted when a user joins the chat via invite link or is added by an admin */