Fix login problems
This commit is contained in:
parent
15194f8f64
commit
71a3a41a90
|
|
@ -54,8 +54,12 @@ module.exports = {
|
|||
if (store.custom_cert_path) {
|
||||
params.custom_cert_path = store.custom_cert_path;
|
||||
}
|
||||
} else {
|
||||
params = {
|
||||
...options,
|
||||
};
|
||||
}
|
||||
const agent = params.customCertPath ? getHttpAgent(params.custom_cert_path) : undefined;
|
||||
const agent = params.custom_cert_path ? getHttpAgent(params.custom_cert_path) : undefined;
|
||||
return fetch(`${host}/api/v4/${what}?${serializeAndEscapeOptions(params)}`, {
|
||||
agent,
|
||||
}).then((res) => res.json());
|
||||
|
|
|
|||
Loading…
Reference in New Issue