mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
modify(mock-data): Added env check to mock data injections
This commit is contained in:
1 parent
093af64c46
commit
e13b064d73
1 file changed
+3
-1
+3
-1
@@ -25,7 +25,8 @@ import { useNotesService } from "./apps/notes/hooks/useNotesService";
|
|||||||
import { usePhotoService } from "./apps/camera/hooks/usePhotoService";
|
import { usePhotoService } from "./apps/camera/hooks/usePhotoService";
|
||||||
import Nui from "./os/nui-events/utils/Nui";
|
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(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent("message", {
|
new MessageEvent("message", {
|
||||||
@@ -215,6 +216,7 @@ setTimeout(() => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
function Phone() {
|
function Phone() {
|
||||||
useNuiService();
|
useNuiService();
|
||||||
|
|||||||
Reference in new issue
Block a user