Skip to content

Commit

Permalink
chore: add console warning (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaf-lamed-beyt authored Feb 25, 2025
1 parent 7d00889 commit 76a0c52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ async function render () {
if (initialData && process.env.NODE_ENV !== 'production') {
console.log('intialising store with data from cache', initialData)
}
console.log(
'%cStop!',
'color: red; font-size: 40px; font-weight: bold; text-shadow: 2px 2px 0 black;'
)
console.log(
'%cThis is a browser feature intended for developers. If someone told you to paste something here, they might be trying to steal your data!',
'color: black; font-size: 16px; font-weight: bold; background: yellow; padding: 4px; border-radius: 4px;'
)
const store = getStore(initialData)
ReactDOM.render(
<Provider store={store}>
Expand Down

0 comments on commit 76a0c52

Please sign in to comment.