Add more error to ignore list

This commit is contained in:
Ilya Ig. Petrov 2017-11-29 13:05:00 +05:00
parent 498f35df71
commit a07ecfeaf2

View File

@ -259,7 +259,11 @@
error: "net::ERR_PAC_SCRIPT_FAILED", error: "net::ERR_PAC_SCRIPT_FAILED",
fatal: false, fatal: false,
*/ */
const ifConFail = details.error === 'net::ERR_PROXY_CONNECTION_FAILED'; const ifConFail = [
'net::ERR_TUNNEL_CONNECTION_FAILED',
'net::ERR_PROXY_CONNECTION_FAILED',
].includes(details.error);
if (ifConFail) { if (ifConFail) {
// Happens if you return neither prixies nor "DIRECT". // Happens if you return neither prixies nor "DIRECT".
// Ignore it. // Ignore it.