Skip to content

Commit

Permalink
refactor(client): remove unnecessary async keyword from createServer …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
Sma1lboy committed Jan 24, 2025
1 parent 2d177e7 commit 17859e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/tabby-chat-panel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ export function createClient(target: HTMLIFrameElement, api: ClientApiMethods):
})
}

export async function createServer(api: ServerApi): Promise<ClientApi> {
return await createThreadFromInsideIframe({
export function createServer(api: ServerApi): Promise<ClientApi> {
return createThreadFromInsideIframe({
expose: {
init: api.init,
executeCommand: api.executeCommand,
Expand Down

0 comments on commit 17859e1

Please sign in to comment.