main #1

Merged
Catgirl merged 8 commits from woem.men/forkey:main into main 2025-01-20 07:43:59 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit 7ed25ef7f5 - Show all commits

View file

@ -118,13 +118,13 @@ async function requestRender() {
}, },
}); });
} else if (variable.value === 'friendlyChallenge' && captchaEl.value instanceof Element) { } else if (variable.value === 'friendlyChallenge' && captchaEl.value instanceof Element) {
new captcha.value.WidgetInstance(captchaEl.value, { new captcha.value.WidgetInstance(captchaEl.value, {
sitekey: props.sitekey, sitekey: props.sitekey,
doneCallback: callback, doneCallback: callback,
errorCallback: callback, errorCallback: callback,
}); });
// The following line is needed so that the design gets applied without it the captcha will look broken // The following line is needed so that the design gets applied without it the captcha will look broken
captchaEl.value.className = 'frc-captcha'; captchaEl.value.className = 'frc-captcha';
} else { } else {
window.setTimeout(requestRender, 1); window.setTimeout(requestRender, 1);
} }

View file

@ -280,7 +280,7 @@ async function init() {
enableMcaptcha.value = meta.enableMcaptcha; enableMcaptcha.value = meta.enableMcaptcha;
enableRecaptcha.value = meta.enableRecaptcha; enableRecaptcha.value = meta.enableRecaptcha;
enableTurnstile.value = meta.enableTurnstile; enableTurnstile.value = meta.enableTurnstile;
enableFriendlycaptcha.value = meta.enableFriendlycaptcha enableFriendlycaptcha.value = meta.enableFriendlycaptcha;
sensitiveMediaDetection.value = meta.sensitiveMediaDetection; sensitiveMediaDetection.value = meta.sensitiveMediaDetection;
sensitiveMediaDetectionSensitivity.value = sensitiveMediaDetectionSensitivity.value =
meta.sensitiveMediaDetectionSensitivity === 'veryLow' ? 0 : meta.sensitiveMediaDetectionSensitivity === 'veryLow' ? 0 :