Skip to content

Commit

Permalink
refactor(iframe): streamline message event listener by removing unnec…
Browse files Browse the repository at this point in the history
…essary conditional block
  • Loading branch information
Sma1lboy committed Jan 22, 2025
1 parent 986119f commit afce109
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clients/tabby-threads/source/targets/iframe/nested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export async function createThreadFromInsideIframe<
self.addEventListener(
"message",
({ data }) => {
if (data === CHECK_MESSAGE) {
respond();
}
if (data === CHECK_MESSAGE) respond();
},
{ signal: options.signal }
);
Expand Down

0 comments on commit afce109

Please sign in to comment.