Compare commits

..

2 Commits

Author SHA1 Message Date
ba24e7417d refactor: log timeout error only, no toast
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s
2024-09-13 11:14:10 +02:00
ea7e3a0964 refactor: update url for online status 2024-09-13 11:06:06 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,8 @@ export const Nostr = () => {
}
} catch (error) {
if (error instanceof TimeoutError) {
toast.error("Extension didn't respond in time")
// Just log the error, no toast, user has already been notified with the loading screen
console.error("Extension didn't respond in time")
} else {
toast.error('Error capturing public key from nostr extension: ' + error)
}

View File

@ -35,7 +35,7 @@ export const isOnline = async () => {
try {
// Define a URL to check the online status
const url = 'https://www.google.com'
const url = 'https://www.sigit.io'
// Make a HEAD request to the URL with 'no-cors' mode
// This mode is used to handle opaque responses which do not expose their content