Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,6 @@ class Client extends EventEmitter {
referer: 'https://whatsapp.com/',
});

console.log('[wwjs-diag] initialize:inject START (first call)');
await this.inject();
console.log('[wwjs-diag] initialize:inject END (first call)');

// [diag:promise-collected] Monitor execution context lifecycle via CDP
try {
const cdpSession = await this.pupPage.target().createCDPSession();
Expand Down Expand Up @@ -843,6 +839,10 @@ class Client extends EventEmitter {
});
}
});

console.log('[wwjs-diag] initialize:inject START (first call)');
await this.inject();
console.log('[wwjs-diag] initialize:inject END (first call)');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/authStrategies/RemoteAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class RemoteAuth extends BaseAuthStrategy {
try {
compressedSessionPath = await this.compressSession();
await this.store.save({
session: path.join(this.dataPath, this.sessionName),
session: this.sessionName,
});
if (options && options.emit)
this.client.emit(Events.REMOTE_SESSION_SAVED);
Expand Down
Loading