tweak(phone/debug): Restricted global mockNuiEvent to dev env

Probably a good idea so we don't forget
This commit is contained in:
Taso committed 2021-03-03 22:04:20 -05:00
1 parent b6352ccf82
commit e330b89889
1 file changed
+2 -1
+2 -1
View File
@@ -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(
<HashRouter>