firefox-devtools / firefox-devtools/profiler
Add "copy url" per double click / click in network panel
Open
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
Assessment
This issue has not been assessed yet.