cookie
This commit is contained in:
parent
bf3a456c8f
commit
5ea18f1468
@ -64,11 +64,7 @@ struct WebPage {
|
|||||||
})
|
})
|
||||||
.onPageBegin(()=>{
|
.onPageBegin(()=>{
|
||||||
if (this.needsCookieInjection(this.url)) {
|
if (this.needsCookieInjection(this.url)) {
|
||||||
try {
|
this.controller.runJavaScript(`hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token=${this.hcp_token}`)
|
||||||
webview.WebCookieManager.configCookieSync('https://dev-wx.igandan.com', 'hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token='+this.hcp_token+';');
|
|
||||||
} catch (error) {
|
|
||||||
console.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.onPageEnd(() => {
|
.onPageEnd(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user