summaryrefslogtreecommitdiff
path: root/source/libs/features.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-12-09 02:21:08 +0700
committerGravatar GitHub <noreply@github.com> 2019-12-09 02:21:08 +0700
commit05da99e5e3f1aefdb1441e4a2aaf62d3518de3f4 (patch)
treead0b39a38c1e082ce79108fb07658cebb6bf47aa /source/libs/features.tsx
parentf6d9f445ea04ccd1e3f0fbe955d1a55da316b40d (diff)
downloadrefined-github-05da99e5e3f1aefdb1441e4a2aaf62d3518de3f4.tar.gz
refined-github-05da99e5e3f1aefdb1441e4a2aaf62d3518de3f4.tar.zst
refined-github-05da99e5e3f1aefdb1441e4a2aaf62d3518de3f4.zip
Meta: Minor improvements thanks to new JS operators (#2600)
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;