firefox-devtools / firefox-devtools/profiler

Add "copy url" per double click / click in network panel

Open
#1,500 2 comments 0 reactions 0 assignees View on GitHub
needs requirements network panel polish
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

Follow up for https://github.com/devtools-html/perf.html/pull/1456#discussion_r233557510

This PR contained a function to copy the URL of a network marker per double click on a row in the network panel.

Dumping the code here, so it might be useful.

```
import copy from 'copy-to-clipboard';

// copy URI
_onDoubleClick = (_event: SyntheticEvent<>): void => {
// strip marker name to url
const uri = this._cropNameToUrl(this.props.marker.name);
// copy url to clipboard
copy(uri);
};


```

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-89)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.