diff options
author | 2020-10-20 21:12:46 -0400 | |
---|---|---|
committer | 2020-10-20 20:12:46 -0500 | |
commit | 42ce2dffb59dff541232ed60fcddb8ece9a1e91c (patch) | |
tree | 1278981e4bc54604673d86b21ba4669b848f295d /source/features/embed-gist-inline.tsx | |
parent | 42dfa16cd5366de26b475de94f8225003df07364 (diff) | |
download | refined-github-42ce2dffb59dff541232ed60fcddb8ece9a1e91c.tar.gz refined-github-42ce2dffb59dff541232ed60fcddb8ece9a1e91c.tar.zst refined-github-42ce2dffb59dff541232ed60fcddb8ece9a1e91c.zip |
Fetch widget for `view-markdown-source` instead of maintaining a copy of it (#3670)
Co-authored-by: Federico <me@fregante.com>
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 0bdb0e63..d6a83b1e 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -22,7 +22,7 @@ async function embedGist(link: HTMLAnchorElement): Promise<void> { // Get the gist via background.js due to CORB policies introduced in Chrome 73 const gistData = await browser.runtime.sendMessage({request: `${link.href}.json`}); - const files = domify.one(gistData.div)!; + const files = domify.one(JSON.parse(gistData).div)!; const fileCount = files.children.length; if (fileCount > 1) { |