Update recaptcha's host (#7132)

Changed to recaptcha.net because google.com are blocked in some region
This commit is contained in:
天王州アテネ 2021-01-30 09:57:11 +08:00 committed by GitHub
parent 8752be63ec
commit a73385a649

View File

@ -57,7 +57,7 @@ export default defineComponent({
src() {
const endpoint = ({
hcaptcha: 'https://hcaptcha.com/1',
grecaptcha: 'https://www.google.com/recaptcha',
grecaptcha: 'https://www.recaptcha.net/recaptcha',
} as Record<PropertyKey, unknown>)[this.provider];
return `${typeof endpoint == 'string' ? endpoint : 'about:invalid'}/api.js?render=explicit`;