summaryrefslogtreecommitdiff
path: root/source/features/toggle-everything-with-alt.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/toggle-everything-with-alt.tsx')
-rw-r--r--source/features/toggle-everything-with-alt.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/toggle-everything-with-alt.tsx b/source/features/toggle-everything-with-alt.tsx
index cc9aea48..a2ac4ab5 100644
--- a/source/features/toggle-everything-with-alt.tsx
+++ b/source/features/toggle-everything-with-alt.tsx
@@ -7,13 +7,13 @@ type EventHandler = (event: DelegateEvent<MouseEvent, HTMLElement>) => void;
function init(): void {
// Collapsed comments in PR conversations and files
- delegate('.repository-content', '.minimized-comment details summary', 'click', clickAll(minimizedCommentsSelector));
+ delegate('.minimized-comment details summary', 'click', clickAll(minimizedCommentsSelector));
// "Load diff" buttons in PR files
- delegate('.repository-content', '.js-file .js-diff-load', 'click', clickAll(allDiffsSelector));
+ delegate('.js-file .js-diff-load', 'click', clickAll(allDiffsSelector));
// Review comments in PR
- delegate('.repository-content', '.js-file .js-resolvable-thread-toggler', 'click', clickAll(resolvedCommentsSelector));
+ delegate('.js-file .js-resolvable-thread-toggler', 'click', clickAll(resolvedCommentsSelector));
}
function clickAll(selectorGetter: ((clickedItem: HTMLElement) => string)): EventHandler {