Skip to content

Commit

Permalink
Improve handler
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Feb 3, 2024
1 parent ec25d9b commit b116523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/handlers/onContentScriptMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Timeout = string | number | NodeJS.Timeout | undefined;

const timeoutMap: Map<ProxyRequestType, Timeout> = new Map();
const fetchTimeoutMsOverride: Map<ProxyRequestType, number> = new Map([
[ProxyRequestType.Usher, 7000],
[ProxyRequestType.Usher, 7000], // Account for slow page load.
]);

export default function onContentScriptMessage(
Expand Down Expand Up @@ -56,7 +56,7 @@ export default function onContentScriptMessage(
type: MessageType.EnableFullModeResponse,
});
} catch (error) {
console.error("Failed to send EnableFullModeResponse message", error);
console.error("Failed to send EnableFullModeResponse message", error);
}
}

Expand Down

0 comments on commit b116523

Please sign in to comment.