diff options
Diffstat (limited to 'source/features/comments-time-machine-links.tsx')
-rw-r--r-- | source/features/comments-time-machine-links.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/comments-time-machine-links.tsx b/source/features/comments-time-machine-links.tsx index 511e7c57..a4bc84cf 100644 --- a/source/features/comments-time-machine-links.tsx +++ b/source/features/comments-time-machine-links.tsx @@ -140,14 +140,14 @@ void features.add(__filebasename, { deduplicate: 'has-rgh-inner', init, }, { + asLongAs: [ + () => new URLSearchParams(location.search).has('rgh-link-date'), + ], include: [ pageDetect.is404, pageDetect.isSingleFile, pageDetect.isRepoTree, ], - exclude: [ - () => !new URLSearchParams(location.search).has('rgh-link-date'), - ], awaitDomReady: false, init: showTimemachineBar, }); |