From 65aeb52a3992aac49ab38ed4eb15de9bcae67359 Mon Sep 17 00:00:00 2001
From: Federico Brigante <opensource@bfred.it>
Date: Mon, 20 Apr 2020 17:51:12 +0200
Subject: Meta: Make bundles smaller (#3020)

---
 source/features/batch-open-issues.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'source/features/batch-open-issues.tsx')

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
 });
-- 
cgit v1.2.3

