diff options
Diffstat (limited to 'source/features/wait-for-build.tsx')
-rw-r--r-- | source/features/wait-for-build.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/features/wait-for-build.tsx b/source/features/wait-for-build.tsx index 4947cb8f..b9169dbd 100644 --- a/source/features/wait-for-build.tsx +++ b/source/features/wait-for-build.tsx @@ -90,13 +90,11 @@ function init(): false | void { onPrMergePanelOpen(showCheckboxIfNecessary); - const container = select('.discussion-timeline-actions')!; - // One of the merge buttons has been clicked - delegate(container, '.js-merge-commit-button', 'click', handleMergeConfirmation); + delegate('.js-merge-commit-button', 'click', handleMergeConfirmation); // Cancel wait when the user presses the Cancel button - delegate(container, '.commit-form-actions button:not(.js-merge-commit-button)', 'click', () => { + delegate('.commit-form-actions button:not(.js-merge-commit-button)', 'click', () => { disableForm(false); }); |