From 841bea8d9d6661186bd17f32b6342e0b3918cf1a Mon Sep 17 00:00:00 2001 From: Edgard Date: Sat, 2 Oct 2021 16:37:55 -0300 Subject: [PATCH] feat: Added option to change the deviceName --- src/deviceName.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deviceName.ts b/src/deviceName.ts index 833eeec9cd..24a665aa6d 100644 --- a/src/deviceName.ts +++ b/src/deviceName.ts @@ -15,6 +15,7 @@ */ import * as packageJSON from '../package.json'; +import { config } from './config'; import * as webpack from './webpack'; // Update deviceName connected @@ -23,7 +24,7 @@ webpack.onInjected(() => { if (m) { const info = m.default.info(); - info.os = `WPPConnect/WA-JS ${packageJSON.version}`; + info.os = config.deviceName; info.version = `${packageJSON.version}`; info.name = undefined; info.ua = undefined;