loadRecaptchaScript

Adds the Google reCAPTCHA JavaScript to the HTML HEAD if reCAPTCHA is enabled and both the site key and secret key are configured (kept in lockstep with server-side verification).

This is an extension function on kotlinx.html HEAD.

Parameters

config

the RecaptchaConfig providing the site key and enabled status.