我正在尝试为 Chrome Devtools - Network 开发一个扩展。是否可以将侧 Pane 添加到网络选项卡?我尝试添加到元素 Pane (只是为了测试),如下所示:
chrome.devtools.panels.elements.createSidebarPane("Options",
function(sidebar) {
sidebar.setPage("Sidebar.html");
sidebar.setHeight("8ex");
});
它成功了,但是下面的代码不起作用:
chrome.devtools.panels.network.createSidebarPane("Options",
function(sidebar) {
sidebar.setPage("Sidebar.html");
sidebar.setHeight("8ex");
});
我在上面的代码中做错了什么?
最佳答案
documentation lists只有两个可能有侧边栏的内置面板:Elements
和 Sources
。
Network
面板的布局在设计上没有任何侧边栏,这就是它不起作用的原因。
关于google-chrome - 在 Chrome Devtools 中添加侧边栏 - 网络 Pane ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33660099/