useEffect(() => {
setTimeout(() => {
const iframeElement = document.getElementById('launcher');
if (iframeElement) {
iframeElement.style.display = 'none';
}
}, 1000); // wait for 1 second
}, []);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
"setTimeout" has never been a stable solution for interacting with the DOM in React. A better alternative that can be used is the "MutationObserver"