Reason for Uncaught Error: Attempting to use a disconnected port object

后端 未结 2 1180
一向
一向 2020-12-31 04:42

I am getting this error in background page when responding to request from content script. Does anyone know what can be causing this error?

Full stack trace:

2条回答
  •  自闭症患者
    2020-12-31 04:51

    In my case, however, I needed to provide the sendResponse function to the chrome.runtime.sendMessage(msg, responseCallbackMissingHere), which will give you the "Attempting to use a disconnected port object" error.

提交回复
热议问题