Glench / ExtPay

The JavaScript library for ExtensionPay.com — payments for your browser extensions, no server needed.
https://extensionpay.com
Other
524 stars 66 forks source link

Testing onPaid.addListener throws error message #181

Closed rylandking closed 9 months ago

rylandking commented 11 months ago

Describe the bug After I test taking a payment, the console of the https://extensionpay.com/extension/timewriter/subscribed/* window shows this error message Uncaught (in promise) message: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received. It shows after 5 or so seconds. And the code I placed inside the listener doesn't run.

Recording Here's a video recording to reproduce.

Desktop (please complete the following information):

Glench commented 9 months ago

Hey, sorry for the late reply! For some reason Github stop notifying me of issues?? The onPaid listener only works in background.js for now. So move it there then send a message to the tab where your extension is running.