react.dev
react.dev copied to clipboard
Replace alert() with console.log() (#3656)
The following Chromium feature is currently being tested. "Feature: Remove alert(), confirm(), and prompt for cross origin iframes§ https://www.chromestatus.com/feature/5148698084376576
Therefore, alert() will no longer work on Codepen. console.log() still works. The feature is not yet in the stable version of Chromium, but in the current beta (tested with Chrome beta version 91.0.4472.27).
Deploy preview for reactjs ready!
Built without sensitive environment variables with commit 5a53a4a7538d717ddfbb0b0502dc6e67544980da
https://deploy-preview-3669--reactjs.netlify.app
Hello @denizbinay, thank you for contributing!
Can you check whether now, (after those years 🙃 ) this is really the case and alert does cause issues on the react.dev?
If yes, then please rebase so I would look into this PR. 👍
Thank you!