diff --git a/chrome/content/network-content-script.js b/chrome/content/network-content-script.js index c02a4fb..4847187 100644 --- a/chrome/content/network-content-script.js +++ b/chrome/content/network-content-script.js @@ -19,7 +19,8 @@ */ if (EVENTS.REQUEST_ITEM_CLICKED) { window.on(EVENTS.REQUEST_ITEM_CLICKED, (_, e, item) => { - if (e.target.closest(".request-list-item.websocket .requests-menu-method")) { + let target = ".request-list-item.websocket .requests-menu-method"; + if (e.target.closest(target)) { navigateToWebSocketPanel(item.id); } });