提交 282e98e9 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix the order of set global puppet instance

上级 e03fc818
......@@ -408,7 +408,7 @@ export class Wechaty extends EventEmitter implements Sayable {
}
// set puppet instance to Wechaty Static variable, for using by Contact/Room/Message/FriendRequest etc.
config.puppetInstance(this.puppet)
config.puppetInstance(puppet)
await puppet.init()
return puppet
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册