|
| 1 | +diff --git a/dist/esm/index.esm2017.js b/dist/esm/index.esm2017.js |
| 2 | +index 0ccacd0074ecd0e8c3d7aecff784035c976c3507..45b1bbdecd576496512cbeff1a3ae3360416e71c 100644 |
| 3 | +--- a/dist/esm/index.esm2017.js |
| 4 | ++++ b/dist/esm/index.esm2017.js |
| 5 | +@@ -1072,8 +1072,6 @@ const version = "0.8.13"; |
| 6 | + * See the License for the specific language governing permissions and |
| 7 | + * limitations under the License. |
| 8 | + */ |
| 9 | +-const RECAPTCHA_URL = 'https://www.google.com/recaptcha/api.js'; |
| 10 | +-const RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js'; |
| 11 | + function initializeV3(app, siteKey) { |
| 12 | + const initialized = new Deferred(); |
| 13 | + const state = getStateReference(app); |
| 14 | +@@ -1178,18 +1176,8 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) { |
| 15 | + state.reCAPTCHAState = Object.assign(Object.assign({}, state.reCAPTCHAState), { // state.reCAPTCHAState is set in the initialize() |
| 16 | + widgetId }); |
| 17 | + } |
| 18 | +-function loadReCAPTCHAV3Script(onload) { |
| 19 | +- const script = document.createElement('script'); |
| 20 | +- script.src = RECAPTCHA_URL; |
| 21 | +- script.onload = onload; |
| 22 | +- document.head.appendChild(script); |
| 23 | +-} |
| 24 | +-function loadReCAPTCHAEnterpriseScript(onload) { |
| 25 | +- const script = document.createElement('script'); |
| 26 | +- script.src = RECAPTCHA_ENTERPRISE_URL; |
| 27 | +- script.onload = onload; |
| 28 | +- document.head.appendChild(script); |
| 29 | +-} |
| 30 | ++function loadReCAPTCHAV3Script(onload) {} |
| 31 | ++function loadReCAPTCHAEnterpriseScript(onload) {} |
| 32 | + |
| 33 | + /** |
| 34 | + * @license |
| 35 | +diff --git a/dist/index.cjs.js b/dist/index.cjs.js |
| 36 | +index 0c2a517b474822b9546c2826f3d31b0d170380a5..91e54ea0cdcbd4f89d57d4e609eaf47a9f6bcd41 100644 |
| 37 | +--- a/dist/index.cjs.js |
| 38 | ++++ b/dist/index.cjs.js |
| 39 | +@@ -1076,8 +1076,6 @@ const version = "0.8.13"; |
| 40 | + * See the License for the specific language governing permissions and |
| 41 | + * limitations under the License. |
| 42 | + */ |
| 43 | +-const RECAPTCHA_URL = 'https://www.google.com/recaptcha/api.js'; |
| 44 | +-const RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js'; |
| 45 | + function initializeV3(app, siteKey) { |
| 46 | + const initialized = new util.Deferred(); |
| 47 | + const state = getStateReference(app); |
| 48 | +@@ -1182,18 +1180,8 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) { |
| 49 | + state.reCAPTCHAState = Object.assign(Object.assign({}, state.reCAPTCHAState), { // state.reCAPTCHAState is set in the initialize() |
| 50 | + widgetId }); |
| 51 | + } |
| 52 | +-function loadReCAPTCHAV3Script(onload) { |
| 53 | +- const script = document.createElement('script'); |
| 54 | +- script.src = RECAPTCHA_URL; |
| 55 | +- script.onload = onload; |
| 56 | +- document.head.appendChild(script); |
| 57 | +-} |
| 58 | +-function loadReCAPTCHAEnterpriseScript(onload) { |
| 59 | +- const script = document.createElement('script'); |
| 60 | +- script.src = RECAPTCHA_ENTERPRISE_URL; |
| 61 | +- script.onload = onload; |
| 62 | +- document.head.appendChild(script); |
| 63 | +-} |
| 64 | ++function loadReCAPTCHAV3Script(onload) {} |
| 65 | ++function loadReCAPTCHAEnterpriseScript(onload) {} |
| 66 | + |
| 67 | + /** |
| 68 | + * @license |
0 commit comments