Fixed lint errors
This commit is contained in:
parent
e35977afd8
commit
7ed25ef7f5
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) {
|
} 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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 :
|
||||||
|
|
Loading…
Reference in a new issue