mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
tweak(phone/debug): Restricted global mockNuiEvent to dev env
Probably a good idea so we don't forget
This commit is contained in:
1 parent
b6352ccf82
commit
e330b89889
1 file changed
+2
-1
+2
-1
@@ -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(
|
ReactDOM.render(
|
||||||
<HashRouter>
|
<HashRouter>
|
||||||
|
|||||||
Reference in new issue
Block a user