SDA-1792 - Fix conditional issue (#879)

This commit is contained in:
Kiran Niranjan 2020-02-28 10:11:49 +05:30 committed by GitHub
parent 7af64fa0e0
commit c6d1f8a4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -609,9 +609,9 @@ export const monitorNetworkInterception = () => {
return;
}
if (windowHandler.isWebPageLoading
&& details.error === 'net::ERR_INTERNET_DISCONNECTED'
&& (details.error === 'net::ERR_INTERNET_DISCONNECTED'
|| details.error === 'net::ERR_NETWORK_CHANGED'
|| details.error === 'net::ERR_NAME_NOT_RESOLVED') {
|| details.error === 'net::ERR_NAME_NOT_RESOLVED')) {
logger.error(`window-utils: URL failed to load`, details);
mainWindow.webContents.send('show-banner', { show: true, bannerType: 'error', url: podUrl });