![]() It responses to any message from popup.js. ![]() The solution is to return true in background message listener. I had same problem when responding on message in callback. [Thanks is rather old and not closely related to Chrome extensions development, but let it be here. Some of them probably need to start returning promises (marking them as async should be enough). So bottom line, if you see your extension causing these errors - inspect closely all your onMessage listeners. Webextension-polyfill authors have already written about it in June 2018. When you send an async response but fail to use either of these mechanisms, the supplied sendResponse argument to sendMessage goes out of scope and the result is exactly as the error message says: your message port (the message-passing apparatus) is closed before the response was received. When you have the response (or reject it in case of an error). You can find a variety of VPN extensions available in the Chrome Web Store. Veep allows you to watch Youtube videos from where you let them even if you closed the tab, restarted your browser or even used another computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |