ElectronCookies.once method
ElectronCookies › once
Unofficial
Registers a one-time listener for thechanged event. Signature:
once(event: "changed", listener: (event: ElectronEvent, cookie: ElectronCookie, cause: "evicted" | "expired-overwrite" | "expired" | "explicit" | "overwrite", removed: boolean) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "changed" | The event name. |
| listener | (event: ElectronEvent, cookie: ElectronCookie, cause: "evicted" | "expired-overwrite" | "expired" | "explicit" | "overwrite", removed: boolean) => void | Called with the changed cookie, the cause of the change, and whether it was removed. |
Returns: this — This cookies instance.