Skip to content

Commit

Permalink
refactor: network interference message includes internet check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Nov 25, 2024
1 parent 107ad55 commit 9c68c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/scripts/check-firewall/checkFirewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const commonHTML = `<p style="text-align:left;">Please refer to the SODA documen
</div>`;

export const blockedMessage = `
<p style="text-align:left;">SODA is unable to reach Pennsieve.
If this issue persists it is possible that your network is blocking access to Pennsieve from SODA.
<p style="text-align:left;">SODA is unable to reach Pennsieve. Please confirm that you are connected to the internet.
If you are connected and this issue persists it is possible that your network is blocking access to Pennsieve from SODA.
</p>
${commonHTML}`;

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/scripts/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ window.addBfAccount = async (ev, verifyingOrganization = False) => {
const pennsieveURL = "https://api.pennsieve.io/discover/datasets";
const blocked = await clientBlockedByExternalFirewall(pennsieveURL);
if (blocked) {
await swalShowInfo("Potential Firewall Interference", blockedMessage);
await swalShowInfo("Potential Network Issues", blockedMessage);
return;
}
let footerMessage = "No existing accounts to load. Please add an account.";
Expand Down

0 comments on commit 9c68c4d

Please sign in to comment.