summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-inline.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2021-05-20 23:05:39 -0400
committerGravatar GitHub <noreply@github.com> 2021-05-20 23:05:39 -0400
commit16b08dec626e75c9ce05d0e3283526508e5f3ee3 (patch)
treec1c8d064118d24907bc738dc7acc181c1e29ad4d /source/features/embed-gist-inline.tsx
parent83f233677157d21fb6ae11958fa45aa7ee99d65a (diff)
downloadrefined-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.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 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;
}