@open-wa/wa-automate 4.31.9 → 4.31.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/auth.js +2 -1
- package/package.json +1 -1
package/dist/controllers/auth.js
CHANGED
@@ -121,13 +121,14 @@ class QRManager {
|
|
121
121
|
this._internalQrPngLoaded = false;
|
122
122
|
this.qrCheck = `document.querySelector("canvas[aria-label='Scan me!']")?document.querySelector("canvas[aria-label='Scan me!']").parentElement.getAttribute("data-ref"):false`;
|
123
123
|
this.config = config;
|
124
|
+
this.setConfig(this.config);
|
124
125
|
}
|
125
126
|
setConfig(config) {
|
126
127
|
this.config = config;
|
127
128
|
this.qrEvF(this.config);
|
128
129
|
}
|
129
130
|
qrEvF(config = this.config) {
|
130
|
-
return new
|
131
|
+
// return new EvEmitter(config.sessionId || 'session', 'qr');
|
131
132
|
if (!this.qrEv)
|
132
133
|
this.qrEv = new events_1.EvEmitter(config.sessionId || 'session', 'qr');
|
133
134
|
return this.qrEv;
|
package/package.json
CHANGED