mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-23 00:35:23 +00:00
更新tree组件的相关功能
This commit is contained in:
@@ -60,18 +60,13 @@ class PortMan {
|
||||
}
|
||||
|
||||
_updateFrames() {
|
||||
let data: FrameDetails[] = this.content.map((item) => {
|
||||
const data: FrameDetails[] = this.content.map((item) => {
|
||||
return {
|
||||
url: item.sender?.url || "",
|
||||
frameID: item.sender?.frameId || 0,
|
||||
};
|
||||
});
|
||||
let event = new PluginEvent(
|
||||
Page.Background,
|
||||
Page.Devtools,
|
||||
Msg.UpdateFrames,
|
||||
data
|
||||
);
|
||||
const event = new PluginEvent(Page.Background, Page.Devtools, Msg.UpdateFrames, data);
|
||||
this.sendDevtoolMsg(event);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user