summaryrefslogtreecommitdiff
path: root/source/features/edit-comments-faster.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2020-01-06 19:16:16 +0700
committerGravatar GitHub <noreply@github.com> 2020-01-06 19:16:16 +0700
commitd98f01294ed89632ddd8bfaed153453ee68cb05b (patch)
tree52f0b4ce506b8c340c3f4c4d9b5790c6ac6325e2 /source/features/edit-comments-faster.tsx
parenta76ed868a84cd0078d8423999faaba7380b0df1b (diff)
downloadrefined-github-d98f01294ed89632ddd8bfaed153453ee68cb05b.tar.gz
refined-github-d98f01294ed89632ddd8bfaed153453ee68cb05b.tar.zst
refined-github-d98f01294ed89632ddd8bfaed153453ee68cb05b.zip
Fix `cloneNode` type (#2670)
Diffstat (limited to 'source/features/edit-comments-faster.tsx')
-rw-r--r--source/features/edit-comments-faster.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/edit-comments-faster.tsx b/source/features/edit-comments-faster.tsx
index aadac096..324d8d67 100644
--- a/source/features/edit-comments-faster.tsx
+++ b/source/features/edit-comments-faster.tsx
@@ -8,7 +8,7 @@ function init(): void {
for (const item of menuItems) {
item.classList.add('rgh-edit-comment');
- const button = item.cloneNode() as HTMLButtonElement;
+ const button = item.cloneNode();
button.append(pencilIcon());
button.classList.replace('dropdown-item', 'timeline-comment-action');
item.closest('details')!.before(button);