diff --git a/package.json b/package.json index 7c27b1b..b7f4e61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty-puppet-wechat", - "version": "0.28.1", + "version": "0.28.2", "description": "Puppet WeChat for Wechaty", "main": "dist/src/mod.js", "typings": "dist/src/mod.d.ts", diff --git a/src/puppet-wechat.ts b/src/puppet-wechat.ts index 824cf52..0582bb7 100644 --- a/src/puppet-wechat.ts +++ b/src/puppet-wechat.ts @@ -127,7 +127,7 @@ export class PuppetWeChat extends Puppet { this.fileId = 0 this.bridge = new Bridge({ - endpoint : options.endpoint, + endpoint : options.endpoint || process.env.WECHATY_PUPPET_PUPPETEER_ENDPOINT, head : typeof options.head === 'boolean' ? options.head : envHead(), launchOptions : options.launchOptions as LaunchOptions, memory : this.memory,