我正在开发一个Chrome扩展,它涉及通过消息端口将消息从后台脚本传递到内容脚本。根据,我必须首先查询要连接到的内容脚本正在运行的选项卡,然后使用tab的ID打开一个端口。background.js var port =chrome.runtime.onConnect.addListener(function(port) {
po
所以我的应用程序一直给我这个错误:
extensions::uncaught_exception_handler:8 Error in event handler for runtime.onMessage_next (chrome-extension://npblbblmbmcjbldhcneoocaobkkicbno/node_modules/rxjs/Subject/.._next (chrome-extension://npblbblm