diff --git a/phone/src/index.tsx b/phone/src/index.tsx index 98824a8..ef8298a 100644 --- a/phone/src/index.tsx +++ b/phone/src/index.tsx @@ -22,7 +22,8 @@ if (PhoneConfig.SentryErrorMetrics) { }); } -attachMockNuiEvent(); +// window.mockNuiEvent is restricted to development env only +if (process.env.NODE_ENV === 'development') attachMockNuiEvent(); ReactDOM.render(