Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

display UI failure status if network request fails

Blue Mouse4a64bd876758
diff --git a/captcha.js b/captcha.js
index edbbed791..e2159add9 100644
--- a/captcha.js
+++ b/captcha.js
@@ -78,6 +78,7 @@ const generateCaptcha = async () => {
const data = await response.json()
return data
} catch (e) {
+ activateAction('failure')
return null
}
}
@@ -98,6 +99,7 @@ const verify = async () => {
const data = await response.json()
return data
} catch (e) {
+ activateAction('failure')
return null
}
}