MCPcopy
hub / github.com/mitmproxy/mitmproxy / openInNewTab

Function openInNewTab

web/src/js/components/Header/FlowMenu.tsx:119–122  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

117
118// Reference: https://stackoverflow.com/a/63627688/9921431
119const openInNewTab = (url) => {
120 const newWindow = window.open(url, "_blank", "noopener,noreferrer");
121 if (newWindow) newWindow.opener = null;
122};
123
124function DownloadButton({ flow }: { flow: Flow }) {
125 const hasSingleFlowSelected = useAppSelector(

Callers 1

DownloadButtonFunction · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…