Skip to content

Commit de2c574

Browse files
committed
Fixed "copy table" button
1 parent 7fd3089 commit de2c574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function inbox (dataArray) {
9191
const copyBtn = document.createElement('button');
9292
copyBtn.append('Copy table');
9393
copyBtn.classList.add('clipboard-js-btn', 'my-4');
94-
copyBtn.setAttribute('data-clipboard-target', `#${category}`);
94+
copyBtn.setAttribute('data-clipboard-target', `#${CSS.escape(category)}`);
9595
details.append(copyBtn);
9696

9797
const div = document.createElement('div');

0 commit comments

Comments
 (0)