Skip to content

Commit 5f71989

Browse files
committed
fix
1 parent a2c32da commit 5f71989

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Highlight Every Code/Highlight Every Code.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
};
5757

5858
document.addEventListener('mousedown', function(o) {
59-
document.body.removeChild(codeIcon);
59+
if(codeIcon.parentNode)codeIcon.parentNode.removeChild(codeIcon);
6060
});
6161
document.addEventListener('mouseup', function(o) {
6262
if (o.button === 0 && (o.ctrlKey || o.altKey || o.metaKey || o.shiftKey)) {

0 commit comments

Comments
 (0)