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/batch-open-issues.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/batch-open-issues.tsx')
-rw-r--r-- | source/features/batch-open-issues.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/batch-open-issues.tsx b/source/features/batch-open-issues.tsx index f859720f..1f60fe86 100644 --- a/source/features/batch-open-issues.tsx +++ b/source/features/batch-open-issues.tsx @@ -2,6 +2,7 @@ import React from 'dom-chef'; import select from 'select-dom'; import delegate from 'delegate-it'; import features from '../libs/features'; +import * as pageDetect from '../libs/page-detect'; const confirmationRequiredCount = 10; @@ -13,7 +14,7 @@ function getUrlFromItem(checkbox: Element): string { } function openIssues(): void { - const modifier = features.isGlobalDiscussionList() ? '' : ' + div '; + const modifier = pageDetect.isGlobalDiscussionList() ? '' : ' + div '; const issues = select.all([ `#js-issues-toolbar.triage-mode ${modifier} [name="issues[]"]:checked`, // Get checked checkboxes `#js-issues-toolbar:not(.triage-mode) ${modifier} .js-issue-row` // Or all items @@ -69,7 +70,7 @@ features.add({ screenshot: 'https://user-images.githubusercontent.com/1402241/38084752-4820b0d8-3378-11e8-868c-a1582b16f915.gif' }, { include: [ - features.isDiscussionList + pageDetect.isDiscussionList ], init }); |