Skip to content

Commit 75b22e6

Browse files
committed
fix(captcha): 🐛 Correct Google reCAPTCHA script URL template string
1 parent 1df360c commit 75b22e6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/docs/src/app/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
--accent: oklch(0.95 0 0);
2323
--accent-foreground: oklch(0.205 0 0);
2424
--destructive: oklch(0.6 0.2 24.45);
25-
--warn: oklch(0.57 0.13 82.37);
25+
--warn: oklch(0.54 0.12 82.58);
2626
--border: oklch(0.9 0 0);
2727
--input: oklch(0.9 0 0);
2828
--ring: oklch(0.7 0.16 262.61);

apps/web/src/app/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
--accent: oklch(0.95 0 0);
2424
--accent-foreground: oklch(0.205 0 0);
2525
--destructive: oklch(0.6 0.2 24.45);
26-
--warn: oklch(0.57 0.13 82.37);
26+
--warn: oklch(0.54 0.12 82.58);
2727
--border: oklch(0.9 0 0);
2828
--input: oklch(0.9 0 0);
2929
--ring: oklch(0.7 0.16 262.61);

packages/vitnode/src/hooks/use-captcha.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export const useCaptcha = (
4545

4646
React.useEffect(() => {
4747
if (!captcha) return;
48-
const googleCaptchaDomain =
49-
'https://www.google.com/recaptcha/api.js?hl=${locale}';
48+
const googleCaptchaDomain = `https://www.google.com/recaptcha/api.js?hl=${locale}`;
5049

5150
// Load script
5251
const script = document.createElement('script');

0 commit comments

Comments
 (0)