File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export function GoogleReCaptchaProvider({
88
88
const onLoadCallbackName = scriptProps ?. onLoadCallbackName || 'onRecaptchaLoadCallback' ;
89
89
90
90
( ( window as unknown ) as { [ key : string ] : ( ) => void } ) [ onLoadCallbackName ] = ( ) => {
91
+ /* eslint-disable @typescript-eslint/no-explicit-any */
91
92
const grecaptcha = useEnterprise
92
93
? ( window as any ) . grecaptcha . enterprise
93
94
: ( window as any ) . grecaptcha ;
Original file line number Diff line number Diff line change 1
- interface InjectGoogleReCaptchaScriptParams {
1
+ interface IInjectGoogleReCaptchaScriptParams {
2
2
render : string ;
3
3
onLoadCallbackName : string ;
4
4
useRecaptchaNet : boolean ;
@@ -39,7 +39,7 @@ const generateGoogleRecaptchaSrc = ({
39
39
*/
40
40
const cleanGstaticRecaptchaScript = ( ) => {
41
41
const script = document . querySelector (
42
- ` script[src^=' https://www.gstatic.com/recaptcha/releases']`
42
+ ' script[src^=" https://www.gstatic.com/recaptcha/releases"]'
43
43
) ;
44
44
45
45
if ( script ) {
@@ -95,9 +95,9 @@ export const injectGoogleReCaptchaScript = ({
95
95
defer = false ,
96
96
async = false ,
97
97
id = '' ,
98
- appendTo = undefined
98
+ appendTo
99
99
} = { }
100
- } : InjectGoogleReCaptchaScriptParams ) => {
100
+ } : IInjectGoogleReCaptchaScriptParams ) => {
101
101
const scriptId = id || 'google-recaptcha-v3' ;
102
102
103
103
// Script has already been injected, just call onLoad and does othing else
You can’t perform that action at this time.
0 commit comments