Skip to content

Commit cca99e9

Browse files
update article: chrome-extension
1 parent 26bf319 commit cca99e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

profiles/chrome-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ rep-extension-tool
103103
* 添加成功
104104

105105
## 错误排查
106-
### `onMessage` 监听器消息端口自动关闭
107-
> 错误信息:`Unchecked runtime.lastError: The message port closed before a response was received.`
106+
### 错误信息:`Unchecked runtime.lastError: The message port closed before a response was received.`
107+
> 造成此错误的原因一般是`onMessage` 监听器消息端口自动关闭
108108
109109
* **可能错误原因一:** `chrome.runtime.onMessage` 监听器在异步操作完成之前关闭了消息端口,导致无法发送响应。
110110

0 commit comments

Comments
 (0)