|
|
@ -45,7 +45,7 @@ class CaptchaController { |
|
|
|
xhr.send(null); |
|
|
|
xhr.send(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
addMissingCaptcha() { |
|
|
|
addMissingCaptcha() { // this will potentially be borked for .onion
|
|
|
|
const postSubmitButton = document.getElementById('submitpost'); |
|
|
|
const postSubmitButton = document.getElementById('submitpost'); |
|
|
|
const captchaFormSectionHtml = captchaformsection(); |
|
|
|
const captchaFormSectionHtml = captchaformsection(); |
|
|
|
postSubmitButton.insertAdjacentHTML('beforebegin', captchaFormSectionHtml); |
|
|
|
postSubmitButton.insertAdjacentHTML('beforebegin', captchaFormSectionHtml); |
|
|
@ -55,7 +55,6 @@ class CaptchaController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
loadCaptcha(field) { |
|
|
|
loadCaptcha(field) { |
|
|
|
console.log(field) |
|
|
|
|
|
|
|
const captchaDiv = field.previousSibling; |
|
|
|
const captchaDiv = field.previousSibling; |
|
|
|
const captchaImg = document.createElement('img'); |
|
|
|
const captchaImg = document.createElement('img'); |
|
|
|
const refreshDiv = document.createElement('div'); |
|
|
|
const refreshDiv = document.createElement('div'); |
|
|
|