Skip to content

Commit

Permalink
split id string in raob map js
Browse files Browse the repository at this point in the history
  • Loading branch information
kylejgillett committed Jan 21, 2025
1 parent 2f04819 commit 694f42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/raob_map_anvil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2552,7 +2552,7 @@
infoWindow.open(map, marker);

// Trigger clipboard copy action on user interaction
navigator.clipboard.writeText(raobSites[index].id).then(function() {
navigator.clipboard.writeText(raobSites[index].id.split(' | ')[0]).then(function() {
alert('Site ID copied to clipboard!');
}).catch(function(err) {
console.error('Failed to copy text: ', err);
Expand Down

0 comments on commit 694f42f

Please sign in to comment.