Skip to content

Commit

Permalink
feat: Added option to change the deviceName
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Oct 2, 2021
1 parent bb33b8d commit 841bea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deviceName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import * as packageJSON from '../package.json';
import { config } from './config';
import * as webpack from './webpack';

// Update deviceName connected
Expand All @@ -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;
Expand Down

0 comments on commit 841bea8

Please sign in to comment.