diff options
author | 2020-04-20 17:51:12 +0200 | |
---|---|---|
committer | 2020-04-20 17:51:12 +0200 | |
commit | 65aeb52a3992aac49ab38ed4eb15de9bcae67359 (patch) | |
tree | 68fc9cb6f2aa565993e8b7a90dd0bdd26c165dae /source/features/embed-gist-inline.tsx | |
parent | d9f5db59949c1a974e8eeaa5d71ca371d12b1bbf (diff) | |
download | refined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.tar.gz refined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.tar.zst refined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.zip |
Meta: Make bundles smaller (#3020)
Diffstat (limited to 'source/features/embed-gist-inline.tsx')
-rw-r--r-- | source/features/embed-gist-inline.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx index ddbd7031..fbb0d751 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -2,6 +2,7 @@ import React from 'dom-chef'; import domify from 'doma'; import select from 'select-dom'; import features from '../libs/features'; +import * as pageDetect from '../libs/page-detect'; import {isFirefox} from '../libs/utils'; const isGist = (link: HTMLAnchorElement): boolean => @@ -56,7 +57,7 @@ features.add({ screenshot: 'https://user-images.githubusercontent.com/6978877/33911900-c62ee968-df8b-11e7-8685-506ffafc60b4.PNG' }, { include: [ - features.hasComments + pageDetect.hasComments ], exclude: [ // https://github.com/sindresorhus/refined-github/issues/2022 |