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/toggle-files-button.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/toggle-files-button.tsx')
-rw-r--r-- | source/features/toggle-files-button.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/toggle-files-button.tsx b/source/features/toggle-files-button.tsx index b1c5da72..87d207f9 100644 --- a/source/features/toggle-files-button.tsx +++ b/source/features/toggle-files-button.tsx @@ -4,6 +4,7 @@ import select from 'select-dom'; import delegate from 'delegate-it'; import chevronDownIcon from 'octicon/chevron-down.svg'; import features from '../libs/features'; +import * as pageDetect from '../libs/page-detect'; import observeElement from '../libs/simplified-element-observer'; function addButton(): void { @@ -39,7 +40,7 @@ features.add({ screenshot: 'https://user-images.githubusercontent.com/1402241/35480123-68b9af1a-043a-11e8-8934-3ead3cff8328.gif' }, { include: [ - features.isRepoTree + pageDetect.isRepoTree ], init }); |