diff options
author | 2020-01-06 19:16:16 +0700 | |
---|---|---|
committer | 2020-01-06 19:16:16 +0700 | |
commit | d98f01294ed89632ddd8bfaed153453ee68cb05b (patch) | |
tree | 52f0b4ce506b8c340c3f4c4d9b5790c6ac6325e2 /source/features/embed-gist-via-iframe.tsx | |
parent | a76ed868a84cd0078d8423999faaba7380b0df1b (diff) | |
download | refined-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.tsx | 4 |
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'); |