summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-inline.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-03-17 19:36:25 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-03-17 19:36:30 +0800
commit72dee2d434c07774426e89bd8bb6eea85092ffc9 (patch)
tree30311b444046231ae1f753481785b2b6d6d26b24 /source/features/embed-gist-inline.tsx
parent0c3548732fa07d491791f8466d99c406c7f6b4b5 (diff)
downloadrefined-github-72dee2d434c07774426e89bd8bb6eea85092ffc9.tar.gz
refined-github-72dee2d434c07774426e89bd8bb6eea85092ffc9.tar.zst
refined-github-72dee2d434c07774426e89bd8bb6eea85092ffc9.zip
Extract domify into `doma` /2
Diffstat (limited to 'source/features/embed-gist-inline.tsx')
-rw-r--r--source/features/embed-gist-inline.tsx2
1 files changed, 1 insertions, 1 deletions
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) {