diff options
author | 2021-05-20 23:05:39 -0400 | |
---|---|---|
committer | 2021-05-20 23:05:39 -0400 | |
commit | 16b08dec626e75c9ce05d0e3283526508e5f3ee3 (patch) | |
tree | c1c8d064118d24907bc738dc7acc181c1e29ad4d /source/features/embed-gist-inline.tsx | |
parent | 83f233677157d21fb6ae11958fa45aa7ee99d65a (diff) | |
download | refined-github-16b08dec626e75c9ce05d0e3283526508e5f3ee3.tar.gz refined-github-16b08dec626e75c9ce05d0e3283526508e5f3ee3.tar.zst refined-github-16b08dec626e75c9ce05d0e3283526508e5f3ee3.zip |
Lint (#4361)
Co-authored-by: Federico Brigante <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 e272a3f5..5221fa9e 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -21,7 +21,7 @@ async function embedGist(link: HTMLAnchorElement): Promise<void> { try { // Fetch via background.js due to CORB policies const gistData = await browser.runtime.sendMessage({fetchJSON: `${link.href}.json`}); - if (gistData.div.length > 10000) { + if (gistData.div.length > 10_000) { info.textContent = ' (too large to embed)'; return; } |