mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(phone/watch): Fixed in-game watch and prevent debug inject
If using the `watch` script in game, the debug injections will not occur.
This commit is contained in:
1 parent
8dc59c47bd
commit
71bb73b54e
3 files changed
+9
-10
No files matched your search
@@ -28,7 +28,7 @@ interface DebugEvent<P = any> {
|
||||
* ])
|
||||
**/
|
||||
const InjectDebugData = <P>(events: DebugEvent<P>[], timer = 1000) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (process.env.NODE_ENV === 'development' && !process.env.REACT_APP_IN_GAME) {
|
||||
for (const event of events) {
|
||||
setTimeout(() => {
|
||||
window.dispatchEvent(
|
||||
|
||||
Reference in new issue
Block a user