Skip to content

Commit

Permalink
Use hidden = true
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Mar 5, 2025
1 parent 94a77d2 commit 622d9eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/semaphore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ let observer = new MutationObserver(mutations => {
}
let forkIcons = document.querySelectorAll('.mdi-source-fork');
forkIcons.forEach(icon => {
let parentSpan = icon.closest('span');
if (parentSpan) {
parentSpan.style.display = 'hidden';
if (icon.parentNode && icon.parentNode.tagName === 'SPAN') {
icon.parentNode.hidden = true;
}
});
});
Expand Down

0 comments on commit 622d9eb

Please sign in to comment.