@open-wa/wa-automate 4.71.0 → 4.71.1
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.
|
@@ -97,13 +97,11 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
|
|
|
97
97
|
waPage.on("framenavigated", (frame) => __awaiter(this, void 0, void 0, function* () {
|
|
98
98
|
try {
|
|
99
99
|
const frameNavPromises = [];
|
|
100
|
-
const content =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
frameNavPromises.push(qrManager.waitFirstQr(waPage, config, spinner));
|
|
106
|
-
}
|
|
100
|
+
// const content = await frame.content() //not using content right now so save some ms by commenting out
|
|
101
|
+
logging_1.log.info(`FRAME NAV DETECTED, ${frame.url()}, Reinjecting APIs...`);
|
|
102
|
+
// there's no more webpack so reinject anyways
|
|
103
|
+
frameNavPromises.push(injectApi(waPage, spinner, true));
|
|
104
|
+
frameNavPromises.push(qrManager.waitFirstQr(waPage, config, spinner));
|
|
107
105
|
if (frame.url().includes('post_logout=1')) {
|
|
108
106
|
console.log("Session most likely logged out");
|
|
109
107
|
}
|
package/package.json
CHANGED