summaryrefslogtreecommitdiff
path: root/source/features/extend-diff-expander.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <opensource@bfred.it> 2020-04-20 17:51:12 +0200
committerGravatar GitHub <noreply@github.com> 2020-04-20 17:51:12 +0200
commit65aeb52a3992aac49ab38ed4eb15de9bcae67359 (patch)
tree68fc9cb6f2aa565993e8b7a90dd0bdd26c165dae /source/features/extend-diff-expander.tsx
parentd9f5db59949c1a974e8eeaa5d71ca371d12b1bbf (diff)
downloadrefined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.tar.gz
refined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.tar.zst
refined-github-65aeb52a3992aac49ab38ed4eb15de9bcae67359.zip
Meta: Make bundles smaller (#3020)
Diffstat (limited to 'source/features/extend-diff-expander.tsx')
-rw-r--r--source/features/extend-diff-expander.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/extend-diff-expander.tsx b/source/features/extend-diff-expander.tsx
index 1ec4ef74..63c644ab 100644
--- a/source/features/extend-diff-expander.tsx
+++ b/source/features/extend-diff-expander.tsx
@@ -2,6 +2,7 @@ import './extend-diff-expander.css';
import select from 'select-dom';
import delegate from 'delegate-it';
import features from '../libs/features';
+import * as pageDetect from '../libs/page-detect';
function expandDiff(event: delegate.Event): void {
// Skip if the user clicked directly on the icon
@@ -20,8 +21,8 @@ features.add({
screenshot: 'https://user-images.githubusercontent.com/6978877/34470024-eee4f43e-ef20-11e7-9036-65094bd58960.PNG'
}, {
include: [
- features.isPRFiles,
- features.isCommit
+ pageDetect.isPRFiles,
+ pageDetect.isCommit
],
init
});