Skip to content

Commit

Permalink
Add a small delay before auto filling credentials
Browse files Browse the repository at this point in the history
More and more websites now use frameworks that lazy load components incl. login forms/widgets therefore those fields we're trying to auto-fill might not necessarily be in the DOM just yet
  • Loading branch information
Gerard Chanekon authored and mulbc committed Apr 25, 2023
1 parent 8197c79 commit 0db24b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ browser.runtime.onMessage.addListener((request) => {
handleCopyToClipboard(request);
break;
case 'fill_creds':
handleFillCredits(request);
if (!request.isUserTriggered) {
setTimeout(handleFillCredits.bind(null, request), 800);
} else {
handleFillCredits(request);
}
break;
case 'fetch_token':
handleFetchToken();
Expand Down

0 comments on commit 0db24b9

Please sign in to comment.