diff --git a/scripts/content.js b/scripts/content.js index 010371f..e0b69bb 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -433,6 +433,11 @@ async function runner() { else if (isSignInPage()) { // Prevent brute forcing if (ctx.signinAttempts >= MAX_SIGNIN_ATTEMPTS) { + if (prev_ctx.signinAttempts < MAX_SIGNIN_ATTEMPTS) { + msg = 'Too many sign in attempts'; + console.log(msg); + await sendNotification(msg); + } await chrome.storage.local.set({ "ctx_statusMsg": "too many sign in attempts" }); isRunning = false; return;