Skip to content

Commit

Permalink
added JIBE project attribution and URL to table copy function for #41
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhiggs committed Nov 1, 2024
1 parent ae59cb6 commit f4699bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/components/vis/graphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ const copyTableToTSV = () => {
const rowData = Array.from(cols).map(col => col.textContent?.trim()).join('\t');
tsv += rowData + '\n';
});
const currentURL = window.location.href;
tsv += `\n${currentURL}`;

navigator.clipboard.writeText(tsv).then(() => {
console.log(`Table for ${area} copied to clipboard in TSV format`);
Expand Down

0 comments on commit f4699bc

Please sign in to comment.