summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-via-iframe.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/embed-gist-via-iframe.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/embed-gist-via-iframe.tsx')
-rw-r--r--source/features/embed-gist-via-iframe.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/embed-gist-via-iframe.tsx b/source/features/embed-gist-via-iframe.tsx
index c2218838..1c252a3f 100644
--- a/source/features/embed-gist-via-iframe.tsx
+++ b/source/features/embed-gist-via-iframe.tsx
@@ -2,8 +2,8 @@ import select from 'select-dom';
import features from '../libs/features';
function init(): void {
- const embedViaScript = select('.file-navigation-option [value^="<script"]')!;
- const embedViaIframe = embedViaScript.cloneNode(true) as HTMLButtonElement;
+ const embedViaScript = select<HTMLButtonElement>('.file-navigation-option [value^="<script"]')!;
+ const embedViaIframe = embedViaScript.cloneNode(true);
// Remove analytics attributes
embedViaIframe.removeAttribute('data-hydro-click');