Skip to content

Handling received errors when sending a message to the plugin from the WebView #164

Open
@Baraksi

Description

@Baraksi

Hey,
When sending a message to the plugin from the WebView using window.postMessage a Promise is returned (as documented). It works great when the event handler on the plugin side finishes as expected, but when an error is thrown on the plugin side the postMessage received error seems to be an empty object.

I tried passing browserWindow.webContents.on with event handlers that are both synchronous and asynchronous functions and both behave that way.

Is that the actual behavior or am I missing something? If it is, it would be great to get the full error information on the WebView side.

Thanks,
Barak

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions