modify(mock-data): Added env check to mock data injections

This commit is contained in:
Taso committed 2020-12-11 12:38:08 -05:00
1 parent 093af64c46
commit e13b064d73
1 file changed
+3 -1
+3 -1
View File
@@ -25,7 +25,8 @@ import { useNotesService } from "./apps/notes/hooks/useNotesService";
import { usePhotoService } from "./apps/camera/hooks/usePhotoService";
import Nui from "./os/nui-events/utils/Nui";
//These events are just for testing. Comment it out before building.
// Inject mock data when in development env.
if (process.env.NODE_ENV === 'development') {
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -215,6 +216,7 @@ setTimeout(() => {
})
);
}, 1000);
}
function Phone() {
useNuiService();