Merge pull request #30880 from glen-84/grecaptcha-sitekey-optional

[grecaptcha] sitekey is optional
This commit is contained in:
Mine Starks
2018-11-28 07:24:21 -08:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -18,11 +18,15 @@ const badge1: ReCaptchaV2.Badge = "bottomleft";
const badge2: ReCaptchaV2.Badge = "bottomright";
const badge3: ReCaptchaV2.Badge = "inline";
const invisibleParams: ReCaptchaV2.Parameters = {
const invisibleParams1: ReCaptchaV2.Parameters = {
sitekey: "siteKey",
badge: badge1,
};
const invisibleParams2: ReCaptchaV2.Parameters = {
badge: badge2,
};
const id1: number = grecaptcha.render("foo");
const id2: number = grecaptcha.render("foo", params);
const id3: number = grecaptcha.render(document.getElementById("foo"));
+1 -1
View File
@@ -46,7 +46,7 @@ declare namespace ReCaptchaV2 {
/**
* Your sitekey.
*/
sitekey: string;
sitekey?: string;
/**
* Optional. The color theme of the widget.
* Accepted values: "light", "dark"