Update samples' dependencies

This commit is contained in:
Andy Wilkinson
2022-01-12 12:11:05 +00:00
parent 11f870202a
commit 87e9b58201
24 changed files with 671 additions and 216 deletions

View File

@@ -1,6 +1,6 @@
function copyToClipboard(container) {
const el = document.createElement('textarea');
el.value = container.textContent;
el.value = container.textContent.replace(/\n$/, '');
document.body.appendChild(el);
el.select();
document.execCommand('copy');