Skip to content
Advertisement

Tag: mutation

Rewrite MutationObserver() with async/await

How can I write this mutation observer code, using async/await? I want to return true after console.log(“Button is appearing…”);. Could someone show me the best way to write this code? I also need to clarify, this code is watching for a button, which appears and then disappears. And the reappears again, multiple times. So the mutationObserver, is watching for the

Advertisement