Skip to content

Commit 7945d91

Browse files
committed
Only log welcome info in the browser
1 parent 1bea19e commit 7945d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Index extends Component {
5151
}
5252

5353
logConsole() {
54-
if (this.state.consoleLogged) {
54+
if (typeof window === undefined || this.state.consoleLogged) {
5555
return;
5656
}
5757

0 commit comments

Comments
 (0)