@open-wa/wa-automate 4.45.1 → 4.45.2
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.
@@ -233,7 +233,10 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
|
|
233
233
|
const WEB_START_TS = new Date().getTime();
|
234
234
|
const webRes = yield waPage.goto(puppeteer_config_1.puppeteerConfig.WAUrl);
|
235
235
|
const WEB_END_TS = new Date().getTime();
|
236
|
-
yield waPage.exposeFunction("ProgressBarEvent", ({ value, text }) =>
|
236
|
+
yield waPage.exposeFunction("ProgressBarEvent", ({ value, text }) => {
|
237
|
+
spinner === null || spinner === void 0 ? void 0 : spinner.info(`${(value || value === 0) && `${value}%:\t`} ${text}`);
|
238
|
+
spinner === null || spinner === void 0 ? void 0 : spinner.emit({ value, text }, "internal_launch_progress");
|
239
|
+
});
|
237
240
|
yield (0, init_patch_1.injectProgObserver)(waPage);
|
238
241
|
if (webRes == null) {
|
239
242
|
spinner === null || spinner === void 0 ? void 0 : spinner.info(`Page loaded but something may have gone wrong: ${WEB_END_TS - WEB_START_TS}ms`);
|
package/package.json
CHANGED