main.js: HOTFIX double captcha init

This commit is contained in:
Zankaria 2024-08-10 01:05:36 +02:00
parent eb6649b260
commit 25089f5cbb

View file

@ -262,6 +262,7 @@ window.onCaptchaLoadTurnstile_post_thread = function() {
// Should be called by the captcha API when it's ready. Ugly I know... D: // Should be called by the captcha API when it's ready. Ugly I know... D:
function onCaptchaLoadTurnstile(action) { function onCaptchaLoadTurnstile(action) {
if (captcha_renderer === null) {
let renderer = { let renderer = {
renderOn: function(container) { renderOn: function(container) {
let widgetId = turnstile.render(container, { let widgetId = turnstile.render(container, {
@ -283,6 +284,7 @@ function onCaptchaLoadTurnstile(action) {
onCaptchaLoad(renderer); onCaptchaLoad(renderer);
} }
}
function initCaptchaImpl() { function initCaptchaImpl() {
/* /*