Skip to content

Commit

Permalink
Refactor captureScreenListener to use an underscore for the unused se…
Browse files Browse the repository at this point in the history
…nder parameter
  • Loading branch information
Royal-lobster committed Nov 26, 2023
1 parent 806e8ce commit 4acc746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/background/sidebar/captureScreenListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* user snipes the screen.
*/
export const captureScreenListener = async () => {
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
chrome.runtime.onMessage.addListener((request, _sender, sendResponse) => {
if (request.action === "captureVisibleTab") {
chrome.tabs.captureVisibleTab((dataUrl) => {
sendResponse(dataUrl);
Expand Down

0 comments on commit 4acc746

Please sign in to comment.