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:
parent
93c8a2b05e
commit
20f3bc7a8b
2 changed files with 12 additions and 8 deletions
2
index.d.ts
vendored
2
index.d.ts
vendored
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue