summaryrefslogtreecommitdiff
path: root/source/features/wait-for-build.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2020-01-07 00:19:09 +0700
committerGravatar GitHub <noreply@github.com> 2020-01-07 00:19:09 +0700
commit7f1f2c52d8deeb0fddb7a7322af7dd090ac19461 (patch)
tree6d5aba6a51777875918a609e4fdf2534870169be /source/features/wait-for-build.tsx
parentdac2a0302aad5462c3a6b896fc66b18391c73d12 (diff)
downloadrefined-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.tsx6
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);
});