Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma committed Aug 26, 2021
1 parent 747a49e commit c89186b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NuGetGallery/Scripts/gallery/page-display-package-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
copyButton.click(function () {
var text = $('#' + id + '-text').text().trim();
window.nuget.copyTextToClipboard(text, copyButton);

copyButton.popover('show');
setTimeout(function () {
copyButton.popover('destroy');
}, 1000);

window.nuget.sendMetric("CopyInstallCommand", 1, {
ButtonId: id,
PackageId: packageId,
Expand Down

0 comments on commit c89186b

Please sign in to comment.