From 72dee2d434c07774426e89bd8bb6eea85092ffc9 Mon Sep 17 00:00:00 2001
From: Federico Brigante <github@bfred.it>
Date: Sun, 17 Mar 2019 19:36:25 +0800
Subject: Extract domify into `doma` /2

---
 source/features/embed-gist-inline.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx
index aee3bf73..c6846487 100644
--- a/source/features/embed-gist-inline.tsx
+++ b/source/features/embed-gist-inline.tsx
@@ -20,7 +20,7 @@ async function embedGist(link) {
 		const response = await fetch(`${link.href}.json`);
 		const gistData = await response.json();
 
-		const files = domify(gistData.div).firstElementChild;
+		const files = domify.one(gistData.div);
 		const fileCount = files.children.length;
 
 		if (fileCount > 1) {
-- 
cgit v1.2.3

