Skip to content

Commit

Permalink
tiny readability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Dec 17, 2024
1 parent 972d0ff commit c4ddbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yoroi-extension/chrome/content-scripts/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ function listenToBackgroundServiceWorker() {
connected = true;
}

const RETRY_COUNT = 1;
const ATTEMPT_COUNT = 2;
const RETRY_DELAY = 3000;

async function sendMessageToBackground(message) {
for (let c = 0; c <= RETRY_COUNT; c++) {
for (let c = 0; c < ATTEMPT_COUNT; c++) {
try {
return chrome.runtime.sendMessage(message);
} catch (error) {
Expand Down

0 comments on commit c4ddbc4

Please sign in to comment.