mirror of
https://github.com/bitwarden/browser
synced 2026-02-04 02:33:33 +00:00
Add comment to lock component describing disable-redirect param
This commit is contained in:
@@ -653,6 +653,9 @@ export class LockComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// determine success route based on client type
|
||||
// The disable-redirect parameter allows callers to prevent automatic navigation after unlock,
|
||||
// useful when the lock component is used in contexts where custom post-unlock behavior is needed
|
||||
// such as passkey modals.
|
||||
if (
|
||||
this.clientType != null &&
|
||||
this.activatedRoute.snapshot.paramMap.get("disable-redirect") === null
|
||||
|
||||
Reference in New Issue
Block a user