From 3cb150b9fbe37d8df001c456d7bef957f5cd92f7 Mon Sep 17 00:00:00 2001
From: AAGaming <aagaming@riseup.net>
Date: Sun, 28 Jul 2024 19:56:53 -0400
Subject: wait for unlock before showing toasts

---
 frontend/src/router-hook.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'frontend/src/router-hook.tsx')

diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index 6e7f5ee1..98aa6863 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -173,10 +173,9 @@ class RouterHook extends Logger {
     }
   }
 
-  private async waitForUnlock() {
+  public async waitForUnlock() {
     try {
       while (window?.securitystore?.IsLockScreenActive?.()) {
-        this.debug('Waiting 500ms for lockscreen to close');
         await sleep(500);
       }
     } catch (e) {
-- 
cgit v1.2.3

