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!

swap isDevelopment IFRAME_URL vars

Blue Mouse4a365f80f23a
diff --git a/src/captcha-loader.ts b/src/captcha-loader.ts
index 7bb858608..24e4c237e 100644
--- a/src/captcha-loader.ts
+++ b/src/captcha-loader.ts
@@ -2,8 +2,8 @@
const isDevelopment = window.__SWETRIX_CAPTCHA_DEV || false
const CAPTCHA_SELECTOR = '.swecaptcha'
-const LIGHT_CAPTCHA_IFRAME_URL = isDevelopment ? 'https://cap.swetrix.com/pages/light' : './light.html'
-const DARK_CAPTCHA_IFRAME_URL = isDevelopment ? 'https://cap.swetrix.com/pages/dark' : './dark.html'
+const LIGHT_CAPTCHA_IFRAME_URL = isDevelopment ? './light.html' : 'https://cap.swetrix.com/pages/light'
+const DARK_CAPTCHA_IFRAME_URL = isDevelopment ? './dark.html' : 'https://cap.swetrix.com/pages/dark'
const DEFAULT_RESPONSE_INPUT_NAME = 'swetrix-captcha-response'
const MESSAGE_IDENTIFIER = 'swetrix-captcha'
const ID_PREFIX = 'swetrix-captcha-'