mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
PM-8111 - Two TODO cleanups
This commit is contained in:
@@ -25,7 +25,7 @@ export class DesktopLoginService {
|
|||||||
*/
|
*/
|
||||||
setupWindowFocusHandler(focusInputCallback: () => void): void {
|
setupWindowFocusHandler(focusInputCallback: () => void): void {
|
||||||
const subscriptionId = "LoginComponent";
|
const subscriptionId = "LoginComponent";
|
||||||
// TODO-rr-bw: refactor to not use deprecated broadcaster service.
|
// TODO: refactor to not use deprecated broadcaster service.
|
||||||
this.broadcasterService.subscribe(subscriptionId, (message: any) => {
|
this.broadcasterService.subscribe(subscriptionId, (message: any) => {
|
||||||
this.ngZone.run(() => {
|
this.ngZone.run(() => {
|
||||||
if (message.command === "windowIsFocused") {
|
if (message.command === "windowIsFocused") {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
showResetPasswordAutoEnrollWarning = false;
|
showResetPasswordAutoEnrollWarning = false;
|
||||||
|
|
||||||
// Desktop properties
|
// Desktop properties
|
||||||
deferFocus: boolean = null; // TODO-rr-bw: why initialize to null instead of false
|
deferFocus: boolean | null = null;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
|
|||||||
Reference in New Issue
Block a user