From a24d9460d36e5147f5a9f389923f2eb75f34e34f Mon Sep 17 00:00:00 2001
From: Fregante <opensource@bfred.it>
Date: Fri, 8 May 2020 01:42:40 +0200
Subject: Extract page-detect.ts into `github-url-detection` (#3062)

---
 source/features/more-dropdown.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'source/features/more-dropdown.tsx')

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

