-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Handle popup right after first popup detected (#326) refs #326 refs #319 * Remove useless additional function call * Remove useless default for function argument * Convert Promise based `detectPopups` to async/await Co-authored-by: Sam Macbeth <[email protected]> * fix: only accept fullfilled promises Co-authored-by: Maxim Tsoy <[email protected]> * fix: await on first popup appears callback We may return unassigned `result` variable before the callback function of `onFirstPopupAppears` because Promise of `detectPopups` can be resolved before the Promise of `handlePopup`. * Handle popup right after first popup detected (#326) refs #326 refs #319 * Remove useless additional function call * Remove useless default for function argument * Convert Promise based `detectPopups` to async/await Co-authored-by: Sam Macbeth <[email protected]> * fix: only accept fullfilled promises Co-authored-by: Maxim Tsoy <[email protected]> * fix: await on first popup appears callback We may return unassigned `result` variable before the callback function of `onFirstPopupAppears` because Promise of `detectPopups` can be resolved before the Promise of `handlePopup`. * fix: unhandled exception --------- Co-authored-by: Sam Macbeth <[email protected]> Co-authored-by: Maxim Tsoy <[email protected]>
- Loading branch information
1 parent
779587a
commit f078b6b
Showing
2 changed files
with
77 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters