Skip to content

Commit 2edb78c

Browse files
committed
mod: only show moe message on production
1 parent 2435a13 commit 2edb78c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

widget/moe-console/ConsoleProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { showMoeMessage } from './showMoeMessage'
55

66
export const ConsoleProvider = () => {
77
useEffect(() => {
8-
showMoeMessage()
8+
if (process.env.NODE_ENV === 'production') {
9+
showMoeMessage()
10+
}
911
}, [])
1012

1113
return null

0 commit comments

Comments
 (0)