diff options
author | 2020-05-08 01:42:40 +0200 | |
---|---|---|
committer | 2020-05-08 01:42:40 +0200 | |
commit | a24d9460d36e5147f5a9f389923f2eb75f34e34f (patch) | |
tree | db2f1253ae14d3af1c842af66c318caa760401d4 /source/features/clean-sidebar.tsx | |
parent | 90b43ae76d84b53eb01a1d8961907c515c010994 (diff) | |
download | refined-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/clean-sidebar.tsx')
-rw-r--r-- | source/features/clean-sidebar.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/features/clean-sidebar.tsx b/source/features/clean-sidebar.tsx index f9927c46..0bf031ae 100644 --- a/source/features/clean-sidebar.tsx +++ b/source/features/clean-sidebar.tsx @@ -2,9 +2,8 @@ import './clean-sidebar.css'; import React from 'dom-chef'; import select from 'select-dom'; import oneTime from 'onetime'; +import * as pageDetect from 'github-url-detection'; import features from '../libs/features'; -import * as pageDetect from '../libs/page-detect'; -import {isPR} from '../libs/page-detect'; import onReplacedElement from '../libs/on-replaced-element'; const canEditSidebar = oneTime((): boolean => select.exists('.sidebar-labels .octicon-gear')); @@ -74,7 +73,7 @@ function clean(): void { } // Reviewers - if (isPR()) { + if (pageDetect.isPR()) { cleanSection('[aria-label="Select reviewers"]'); } |