diff --git a/src/whatsapp.ts b/src/whatsapp.ts index 65d0a93..2739e7b 100644 --- a/src/whatsapp.ts +++ b/src/whatsapp.ts @@ -97,9 +97,11 @@ export function parseGeoLocation(latitude: string, longitude: string): Array process.stdin.once('data', () => { - process.stdin.setRawMode(false); + if (process.stdin.isTTY) + process.stdin.setRawMode(false); resolve(undefined); })); }