From d98f01294ed89632ddd8bfaed153453ee68cb05b Mon Sep 17 00:00:00 2001
From: Federico Brigante <github@bfred.it>
Date: Mon, 6 Jan 2020 19:16:16 +0700
Subject: Fix `cloneNode` type (#2670)

---
 source/features/embed-gist-via-iframe.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'source/features/embed-gist-via-iframe.tsx')

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');
-- 
cgit v1.2.3

