Skip to content

Commit

Permalink
content-script prop
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Mar 14, 2024
1 parent 0a0b63e commit a0592cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transport-chrome/session-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class CRSessionClient {
this.servicePort.postMessage(this.requestChannelStream(ev.data));
else console.warn('Unknown item from client', ev.data);
} catch (e) {
this.clientPort.postMessage({ error: String(e) });
this.clientPort.postMessage({ error: { code: 'unknown', message: String(e) } });
}
};

Expand All @@ -87,7 +87,7 @@ export class CRSessionClient {
this.clientPort.postMessage(...this.acceptChannelStreamResponse(m));
else console.warn('Unknown item from service', m);
} catch (e) {
this.clientPort.postMessage({ error: String(e) });
this.clientPort.postMessage({ error: { code: 'unknown', message: String(e) } });
}
};

Expand Down

0 comments on commit a0592cd

Please sign in to comment.