summaryrefslogtreecommitdiff
path: root/source/features/show-associated-branch-prs-on-fork.tsx
diff options
context:
space:
mode:
authorGravatar Vedant K <gamemaker0042@gmail.com> 2021-09-26 10:38:53 +0530
committerGravatar GitHub <noreply@github.com> 2021-09-26 12:08:53 +0700
commit17d55029b7224038a2daaecf524ce5ec9f5c9ef6 (patch)
tree0482edd616d4d11663a53aa7a8484eda72108be5 /source/features/show-associated-branch-prs-on-fork.tsx
parentfdd2e33dbc61675685eaa914f869c955a305764c (diff)
downloadrefined-github-17d55029b7224038a2daaecf524ce5ec9f5c9ef6.tar.gz
refined-github-17d55029b7224038a2daaecf524ce5ec9f5c9ef6.tar.zst
refined-github-17d55029b7224038a2daaecf524ce5ec9f5c9ef6.zip
Meta: Add an `asLongAs` option to `features.add()` (#4800)
Co-authored-by: yakov116 <16872793+yakov116@users.noreply.github.com> Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/show-associated-branch-prs-on-fork.tsx')
-rw-r--r--source/features/show-associated-branch-prs-on-fork.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/show-associated-branch-prs-on-fork.tsx b/source/features/show-associated-branch-prs-on-fork.tsx
index 589e9f27..80a9fedf 100644
--- a/source/features/show-associated-branch-prs-on-fork.tsx
+++ b/source/features/show-associated-branch-prs-on-fork.tsx
@@ -105,12 +105,12 @@ async function init(): Promise<void> {
}
void features.add(__filebasename, {
+ asLongAs: [
+ pageDetect.isForkedRepo,
+ ],
include: [
pageDetect.isBranches,
],
- exclude: [
- () => !pageDetect.isForkedRepo(),
- ],
awaitDomReady: false,
init: onetime(init),
});