summaryrefslogtreecommitdiff
path: root/source/libs/on-new-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/on-new-comments.ts')
-rw-r--r--source/libs/on-new-comments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libs/on-new-comments.ts b/source/libs/on-new-comments.ts
index 9f5b98f1..8b439cf7 100644
--- a/source/libs/on-new-comments.ts
+++ b/source/libs/on-new-comments.ts
@@ -3,7 +3,7 @@ import debounce from 'debounce-fn';
import observeEl from './simplified-element-observer';
const handlers = new Set<() => void>();
-const observed = new WeakSet<HTMLElement>();
+const observed = new WeakSet();
const run = debounce(() => {
// Safely run all callbacks
@@ -25,7 +25,7 @@ const addListenersOnNewElements = debounce(() => {
}, {wait: 50});
const setup = () => {
- const discussion = select<HTMLElement>('.js-discussion');
+ const discussion = select('.js-discussion');
if (!discussion || observed.has(discussion)) {
return;
}