Skip to content

Commit 7dbd735

Browse files
committedOct 20, 2022
chore: remove debug code.
1 parent 5adef63 commit 7dbd735

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/plugins/useCopied.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ export function useCopied(container: React.RefObject<HTMLDivElement>) {
1414
useEffect(() => {
1515
const btns = container.current?.querySelectorAll('pre code + div.copied');
1616
btns && Array.from(btns).forEach((elm) => elm.addEventListener('click', handle, false));
17-
btns && Array.from(btns).forEach((elm) => elm.addEventListener('click', (evn) => {}, false));
1817
return () => {
19-
btns && Array.from(btns).forEach((elm) => elm.removeEventListener('click', handle));
18+
btns && Array.from(btns).forEach((elm) => elm.removeEventListener('click', handle, false));
2019
};
2120
// eslint-disable-next-line react-hooks/exhaustive-deps
2221
}, [container]);

0 commit comments

Comments
 (0)
Please sign in to comment.