mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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 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();
|
||||
|
||||
Reference in new issue
Block a user