forked from leftypol/leftypol
main.js: HOTFIX double captcha init
This commit is contained in:
parent
eb6649b260
commit
25089f5cbb
1 changed files with 20 additions and 18 deletions
|
@ -262,6 +262,7 @@ window.onCaptchaLoadTurnstile_post_thread = function() {
|
|||
|
||||
// Should be called by the captcha API when it's ready. Ugly I know... D:
|
||||
function onCaptchaLoadTurnstile(action) {
|
||||
if (captcha_renderer === null) {
|
||||
let renderer = {
|
||||
renderOn: function(container) {
|
||||
let widgetId = turnstile.render(container, {
|
||||
|
@ -282,6 +283,7 @@ function onCaptchaLoadTurnstile(action) {
|
|||
};
|
||||
|
||||
onCaptchaLoad(renderer);
|
||||
}
|
||||
}
|
||||
|
||||
function initCaptchaImpl() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue