diff options
author | 2020-01-07 00:19:09 +0700 | |
---|---|---|
committer | 2020-01-07 00:19:09 +0700 | |
commit | 7f1f2c52d8deeb0fddb7a7322af7dd090ac19461 (patch) | |
tree | 6d5aba6a51777875918a609e4fdf2534870169be /source/features/wait-for-build.tsx | |
parent | dac2a0302aad5462c3a6b896fc66b18391c73d12 (diff) | |
download | refined-github-7f1f2c52d8deeb0fddb7a7322af7dd090ac19461.tar.gz refined-github-7f1f2c52d8deeb0fddb7a7322af7dd090ac19461.tar.zst refined-github-7f1f2c52d8deeb0fddb7a7322af7dd090ac19461.zip |
Keep features working after clicking the browser’s Back button (#2639)
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); }); |