fix: disconnect observer after handling overlay
This commit is contained in:
parent
133b91bee5
commit
2b042ad5f1
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ const observer = new MutationObserver(() => {
|
|||
const submitBtn = overlay.querySelector('button.payok__submit');
|
||||
if (!freeRadio || !submitBtn) return;
|
||||
|
||||
observer.disconnect();
|
||||
freeRadio.click();
|
||||
setTimeout(() => submitBtn.click(), 100);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue