Skip to content

Commit

Permalink
don't call callback more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed May 10, 2024
1 parent 6517428 commit 1d17914
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,12 @@ app.whenReady().then(async () => {
});
if (response.response === 1) {
callback(true);
return;
}
}
if (permission === 'clipboard-sanitized-write') {
callback(true);
return;
}
callback(false);
},
Expand Down

0 comments on commit 1d17914

Please sign in to comment.