Match-id-63a8d97173b3615bf3b6cf153df0aeefc8fe6fb1
This commit is contained in:
parent
c744bf3e0e
commit
f76a09544d
|
@ -14,10 +14,9 @@ chrome.runtime.onConnect.addListener(function (port) {
|
||||||
const { type, data } = payload;
|
const { type, data } = payload;
|
||||||
let passMessage;
|
let passMessage;
|
||||||
if (type === InitDevToolPageConnection) {
|
if (type === InitDevToolPageConnection) {
|
||||||
if (!connections[data]) {
|
// 记录 panel 所在 tab 页的tabId,如果已经记录了,覆盖原有port,因为原有port可能关闭了
|
||||||
// 获取 panel 所在 tab 页的tabId
|
// 可能这次是 panel 发起的重新建立请求
|
||||||
connections[data] = port;
|
connections[data] = port;
|
||||||
}
|
|
||||||
passMessage = packagePayload({ type: RequestAllVNodeTreeInfos }, DevToolBackground);
|
passMessage = packagePayload({ type: RequestAllVNodeTreeInfos }, DevToolBackground);
|
||||||
} else {
|
} else {
|
||||||
passMessage = message;
|
passMessage = message;
|
||||||
|
|
Loading…
Reference in New Issue