From b36fbc38dd97bf3e725f8c1ef69026f63cef776c Mon Sep 17 00:00:00 2001 From: Renato Pozzi Date: Mon, 25 Nov 2024 09:59:58 +0100 Subject: [PATCH] fix(github): add uniqueness in rendering --- src/content/github.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/github.js b/src/content/github.js index 866c33e9c..4bba83b7a 100644 --- a/src/content/github.js +++ b/src/content/github.js @@ -22,7 +22,7 @@ const getPaneDescription = async (elem) => { // Issue and Pull Request Page togglbutton.render( - '#partial-discussion-sidebar', + '#partial-discussion-sidebar:not(.toggl)', { observe: true }, function (elem) { const numElem = $('.gh-header-number') @@ -62,7 +62,7 @@ togglbutton.render( // Issue Beta togglbutton.render( - '[data-testid="issue-viewer-metadata-pane"]', + '[data-testid="issue-viewer-metadata-pane"]:not(.toggl)', { observe: true }, function (elem) { const titleElem = $('[data-testid="issue-title"]')