summaryrefslogtreecommitdiff
path: root/source/features/discussion-links-on-repo-lists.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/discussion-links-on-repo-lists.tsx')
-rw-r--r--source/features/discussion-links-on-repo-lists.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/features/discussion-links-on-repo-lists.tsx b/source/features/discussion-links-on-repo-lists.tsx
index a0beb088..22654f52 100644
--- a/source/features/discussion-links-on-repo-lists.tsx
+++ b/source/features/discussion-links-on-repo-lists.tsx
@@ -3,6 +3,7 @@ import select from 'select-dom';
import issueIcon from 'octicon/issue-opened.svg';
import pullRequestIcon from 'octicon/git-pull-request.svg';
import features from '../libs/features';
+import * as pageDetect from '../libs/page-detect';
import observeElement from '../libs/simplified-element-observer';
function init(): void {
@@ -43,13 +44,13 @@ features.add({
screenshot: 'https://user-images.githubusercontent.com/16872793/78712349-82c54900-78e6-11ea-8328-3c2d39a78862.png'
}, {
include: [
- features.isUserProfileRepoTab,
- features.isGlobalSearchResults
+ pageDetect.isUserProfileRepoTab,
+ pageDetect.isGlobalSearchResults
],
init
}, {
include: [
- features.isUserProfileRepoTab
+ pageDetect.isUserProfileRepoTab
],
init: () => {
observeElement('#user-repositories-list', init);