summaryrefslogtreecommitdiff
path: root/source/features/more-dropdown.tsx
diff options
context:
space:
mode:
authorGravatar Fregante <opensource@bfred.it> 2020-05-08 01:42:40 +0200
committerGravatar GitHub <noreply@github.com> 2020-05-08 01:42:40 +0200
commita24d9460d36e5147f5a9f389923f2eb75f34e34f (patch)
treedb2f1253ae14d3af1c842af66c318caa760401d4 /source/features/more-dropdown.tsx
parent90b43ae76d84b53eb01a1d8961907c515c010994 (diff)
downloadrefined-github-a24d9460d36e5147f5a9f389923f2eb75f34e34f.tar.gz
refined-github-a24d9460d36e5147f5a9f389923f2eb75f34e34f.tar.zst
refined-github-a24d9460d36e5147f5a9f389923f2eb75f34e34f.zip
Extract page-detect.ts into `github-url-detection` (#3062)
Diffstat (limited to 'source/features/more-dropdown.tsx')
-rw-r--r--source/features/more-dropdown.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/features/more-dropdown.tsx b/source/features/more-dropdown.tsx
index a735873c..94315cd6 100644
--- a/source/features/more-dropdown.tsx
+++ b/source/features/more-dropdown.tsx
@@ -2,14 +2,15 @@ import './more-dropdown.css';
import React from 'dom-chef';
import select from 'select-dom';
import elementReady from 'element-ready';
+import * as pageDetect from 'github-url-detection';
+
import DiffIcon from 'octicon/diff.svg';
import BranchIcon from 'octicon/git-branch.svg';
import HistoryIcon from 'octicon/history.svg';
import PackageIcon from 'octicon/package.svg';
+
import features from '../libs/features';
-import * as pageDetect from '../libs/page-detect';
import {getRepoURL, getReference} from '../libs/utils';
-import {isEnterprise} from '../libs/page-detect';
import {appendBefore} from '../libs/dom-utils';
const repoUrl = getRepoURL();
@@ -48,7 +49,7 @@ async function init(): Promise<void> {
<DiffIcon/> Compare
</a>,
- isEnterprise() ? '' : (
+ pageDetect.isEnterprise() ? '' : (
<a href={`/${repoUrl}/network/dependencies`} className="rgh-reponav-more dropdown-item">
<PackageIcon/> Dependencies
</a>