forked from woem.men/forkey
main #1
2 changed files with 8 additions and 8 deletions
|
@ -118,13 +118,13 @@ async function requestRender() {
|
|||
},
|
||||
});
|
||||
} else if (variable.value === 'friendlyChallenge' && captchaEl.value instanceof Element) {
|
||||
new captcha.value.WidgetInstance(captchaEl.value, {
|
||||
sitekey: props.sitekey,
|
||||
doneCallback: callback,
|
||||
errorCallback: callback,
|
||||
});
|
||||
// The following line is needed so that the design gets applied without it the captcha will look broken
|
||||
captchaEl.value.className = 'frc-captcha';
|
||||
new captcha.value.WidgetInstance(captchaEl.value, {
|
||||
sitekey: props.sitekey,
|
||||
doneCallback: callback,
|
||||
errorCallback: callback,
|
||||
});
|
||||
// The following line is needed so that the design gets applied without it the captcha will look broken
|
||||
captchaEl.value.className = 'frc-captcha';
|
||||
} else {
|
||||
window.setTimeout(requestRender, 1);
|
||||
}
|
||||
|
|
|
@ -280,7 +280,7 @@ async function init() {
|
|||
enableMcaptcha.value = meta.enableMcaptcha;
|
||||
enableRecaptcha.value = meta.enableRecaptcha;
|
||||
enableTurnstile.value = meta.enableTurnstile;
|
||||
enableFriendlycaptcha.value = meta.enableFriendlycaptcha
|
||||
enableFriendlycaptcha.value = meta.enableFriendlycaptcha;
|
||||
sensitiveMediaDetection.value = meta.sensitiveMediaDetection;
|
||||
sensitiveMediaDetectionSensitivity.value =
|
||||
meta.sensitiveMediaDetectionSensitivity === 'veryLow' ? 0 :
|
||||
|
|
Loading…
Reference in a new issue