Created
March 30, 2020 09:45
-
-
Save simple17/2139e9fddf3230da9feec0df8afe2f53 to your computer and use it in GitHub Desktop.
[Check Variable Promise]
This file contains hidden or 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
const checkActiveModals = function() { | |
return new Promise(function (resolve, reject) { | |
(function waitForModals(){ | |
if (!isAnySuggestModalShown) return resolve(); | |
setTimeout(waitForModals, 500); | |
})(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment