summaryrefslogtreecommitdiff
path: root/source/libs/features.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/features.tsx')
-rw-r--r--source/libs/features.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/libs/features.tsx b/source/libs/features.tsx
index a84c5b17..cc8f718f 100644
--- a/source/libs/features.tsx
+++ b/source/libs/features.tsx
@@ -64,10 +64,7 @@ onAjaxedPages(async () => {
await globalReady; // Match `add()`
await Promise.resolve(); // Kicks it to the next tick, after the other features have `run()`
- const ajaxContainer = select('#js-repo-pjax-container,#js-pjax-container');
- if (ajaxContainer) {
- ajaxContainer.append(<has-rgh/>);
- }
+ select('#js-repo-pjax-container, #js-pjax-container')?.append(<has-rgh/>);
});
let log: typeof console.log;