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!

fix: captcha is always in development mode

Blue Mouse6dddcd85746c
diff --git a/package.json b/package.json
index cd104643e..7392f1dd8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@swetrix/captcha",
- "version": "2.0.0",
+ "version": "2.0.1",
"description": "Swetrix CAPTCHA",
"type": "module",
"captchaloader": "dist/captcha-loader.js",
diff --git a/src/captcha.ts b/src/captcha.ts
index 2eeebeffa..67cd8eac0 100644
--- a/src/captcha.ts
+++ b/src/captcha.ts
@@ -1,7 +1,7 @@
export {}
// @ts-ignore
-const isDevelopment = true // window.__SWETRIX_CAPTCHA_DEV || false
+const isDevelopment = window.__SWETRIX_CAPTCHA_DEV || false
const API_URL = isDevelopment ? 'http://localhost:5005/v1/captcha' : 'https://api.swetrix.com/v1/captcha'
const WORKER_URL = isDevelopment ? './pow-worker.js' : 'https://cap.swetrix.com/pow-worker.js'