Skip to content

Commit

Permalink
deploy: a8c2f5d
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Oct 3, 2023
1 parent 8134a26 commit f270015
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 26 deletions.
2 changes: 1 addition & 1 deletion js/global-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setupCodeBlockCopyButton() {
const elem = $(this).closest('.code-container').find('code').clone();
elem.find('.command-prefix').remove(); // removing prefix
elem.find('.disable-copy').remove(); // removing text which shouldn't be copied
navigator.clipboard.writeText(elem.text());
navigator.clipboard.writeText(elem.text().trim());
$(this).find('span').text('Copied!');
setTimeout(() => {
$(this).find('span').text('Copy');
Expand Down
2 changes: 1 addition & 1 deletion sitemap.xml

Large diffs are not rendered by default.

Loading

0 comments on commit f270015

Please sign in to comment.