We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ea48c commit 100adf9Copy full SHA for 100adf9
src/modules/security.js
@@ -546,7 +546,8 @@
546
var $input = $(this),
547
div = document.createElement('DIV'),
548
siteKey = config.reCaptchaSiteKey || $input.valAttr('recaptcha-sitekey'),
549
- theme = config.reCaptchaTheme || $input.valAttr('recaptcha-theme') || 'light';
+ theme = config.reCaptchaTheme || $input.valAttr('recaptcha-theme') || 'light',
550
+ size = config.reCaptchaSize || $input.valAttr('recaptcha-size') || 'normal';
551
552
if (!siteKey) {
553
throw new Error('Google reCaptcha site key is required.');
@@ -563,6 +564,7 @@
563
564
var widgetId = grecaptcha.render(div, {
565
sitekey: siteKey,
566
theme: theme,
567
+ size: size,
568
callback: grecaptchaRenderCallback,
569
'expired-callback': grecaptchaRenderCallback
570
});
0 commit comments