diff options
author | 2019-03-17 19:36:25 +0800 | |
---|---|---|
committer | 2019-03-17 19:36:30 +0800 | |
commit | 72dee2d434c07774426e89bd8bb6eea85092ffc9 (patch) | |
tree | 30311b444046231ae1f753481785b2b6d6d26b24 /source/features/embed-gist-inline.tsx | |
parent | 0c3548732fa07d491791f8466d99c406c7f6b4b5 (diff) | |
download | refined-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.tsx | 2 |
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) { |