From afce109abcde55db4719fa5a755f9a6f5c05d9a7 Mon Sep 17 00:00:00 2001 From: Sma1lboy <541898146chen@gmail.com> Date: Wed, 22 Jan 2025 14:31:26 -0600 Subject: [PATCH] refactor(iframe): streamline message event listener by removing unnecessary conditional block --- clients/tabby-threads/source/targets/iframe/nested.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/tabby-threads/source/targets/iframe/nested.ts b/clients/tabby-threads/source/targets/iframe/nested.ts index 6ffda55e230c..f603ebcd93b2 100644 --- a/clients/tabby-threads/source/targets/iframe/nested.ts +++ b/clients/tabby-threads/source/targets/iframe/nested.ts @@ -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 } );