@open-wa/wa-automate 4.27.5 → 4.27.6
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 +3 -0
- package/package.json +1 -1
package/dist/controllers/auth.js
CHANGED
@@ -79,6 +79,9 @@ const waitForRipeSession = (waPage) => __awaiter(void 0, void 0, void 0, functio
|
|
79
79
|
});
|
80
80
|
exports.waitForRipeSession = waitForRipeSession;
|
81
81
|
const sessionDataInvalid = (waPage) => __awaiter(void 0, void 0, void 0, function* () {
|
82
|
+
yield waPage
|
83
|
+
.waitForFunction('!window.getQrPng', { timeout: 0, polling: 'mutation' });
|
84
|
+
yield browser_1.injectApi(waPage);
|
82
85
|
yield waPage
|
83
86
|
.waitForFunction('!window.getQrPng', { timeout: 0, polling: 'mutation' });
|
84
87
|
//if the code reaches here it means the browser was refreshed. Nuke the session data and restart `create`
|
package/package.json
CHANGED