Skip to content

Commit

Permalink
Safety for profile stats estimate.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Feb 26, 2025
1 parent 7a34394 commit 8b16727
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
observer?.disconnect();
observer = new MutationObserver((mutations) => {
if (![...mutations].some((mutation) => [...mutation.addedNodes].every((node) => node.nodeType === Document.TEXT_NODE))) return;
if (title.find(".tt-stats-estimate-profile")) return;

title.appendChild(document.newElement({ type: "span", class: "tt-stats-estimate-profile", text: estimate }));
});
Expand Down

0 comments on commit 8b16727

Please sign in to comment.