[Updater > Request] Don't try Electron net at all, just request
This commit is contained in:
parent
675afd9e55
commit
425da3f128
1 changed files with 2 additions and 2 deletions
|
@ -167,12 +167,12 @@ async function requestWithMethod(method, options) {
|
|||
|
||||
log('Request', method, options.url);
|
||||
|
||||
try {
|
||||
/* try {
|
||||
return await electronRequest(options);
|
||||
} catch (err) {
|
||||
console.log(`Error downloading with electron net: ${err.message}`);
|
||||
console.log('Falling back to node net library..');
|
||||
}
|
||||
} */
|
||||
|
||||
return nodeRequest(options);
|
||||
} // only supports get for now, since retrying is non-idempotent and
|
||||
|
|
Loading…
Reference in a new issue