diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js index a0a55dc..e180ca9 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js @@ -282,7 +282,7 @@ handlers.mayNotify( noCon, chrome.i18n.getMessage('noControl'), - chrome.i18n.getMessage('which'), + chrome.i18n.getMessage('WhichQ'), {icon: 'no-control-128.png', ifSticky: false} ); } else { diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js index 9db2838..213f650 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js @@ -190,18 +190,12 @@ () => new Promise( (resolve, reject) => httpLib.get( url, - (newErr, pacData) => newErr ? reject(newErr) : resolve(pacData), + (newErr, pacData) => + newErr ? reject(newErr) : resolve(pacData), ), ), ), Promise.reject(), - ) - .catch( - clarifyThen( - chrome.i18n.getMessage('FailedToDownloadPacScriptFromAddresses') + ': [ ' - + provider.pacUrls.join(' , ') + ' ].', - cb, - ), ), ); @@ -215,6 +209,11 @@ ), ); }, + clarifyThen( + chrome.i18n.getMessage('FailedToDownloadPacScriptFromAddresses') + ': [ ' + + provider.pacUrls.join(' , ') + ' ].', + cb, + ), ); };