Skip to content

Commit 76a0c52

Browse files
chore: add console warning (#2332)
1 parent 7d00889 commit 76a0c52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ async function render () {
2222
if (initialData && process.env.NODE_ENV !== 'production') {
2323
console.log('intialising store with data from cache', initialData)
2424
}
25+
console.log(
26+
'%cStop!',
27+
'color: red; font-size: 40px; font-weight: bold; text-shadow: 2px 2px 0 black;'
28+
)
29+
console.log(
30+
'%cThis is a browser feature intended for developers. If someone told you to paste something here, they might be trying to steal your data!',
31+
'color: black; font-size: 16px; font-weight: bold; background: yellow; padding: 4px; border-radius: 4px;'
32+
)
2533
const store = getStore(initialData)
2634
ReactDOM.render(
2735
<Provider store={store}>

0 commit comments

Comments
 (0)