diff --git a/viewer/components/extensionconnection.ts b/viewer/components/extensionconnection.ts index 4c63ed2c..83500da8 100644 --- a/viewer/components/extensionconnection.ts +++ b/viewer/components/extensionconnection.ts @@ -17,7 +17,7 @@ export class ExtensionConnection { } send(message: ClientRequest) { - void this.connectionPort.send(message) + return this.connectionPort.send(message) } private setupDoms() { @@ -47,7 +47,7 @@ export class ExtensionConnection { pdfFileUri: this.lwApp.pdfFileUri, viewer: (isEmbedded ? 'tab' : 'browser') } - this.send(openPack) + void this.send(openPack) void this.connectionPort.onDidReceiveMessage((event: MessageEvent) => { const data = JSON.parse(event.data) as ServerResponse switch (data.type) {