Skip to content

Commit 886cb3c

Browse files
Update click-to-copy.js
Signed-off-by: Akshat Singhai <akshatsinghai6682@gmail.com>
1 parent d49368c commit 886cb3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/js/click-to-copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const pruneUnselectableElements = (sourceNode, cloneNode) => {
9494
const cloneChild = cloneChildren[i];
9595
const style = window.getComputedStyle(sourceChild);
9696
const unselectable =
97-
style && (style.userSelect === 'none' || style.webkitUserSelect === 'none');
97+
style.userSelect === 'none' || style.webkitUserSelect === 'none';
9898
if (unselectable) {
9999
cloneChild.remove();
100100
continue;

0 commit comments

Comments
 (0)