Captcha must be replaced before container is observed.
This commit is contained in:
parent
e5ff2c5e8d
commit
3aea135524
@ -32,6 +32,7 @@ Captcha.v1 =
|
|||||||
QR.captcha.clear()
|
QR.captcha.clear()
|
||||||
$.sync 'captchas', @sync
|
$.sync 'captchas', @sync
|
||||||
|
|
||||||
|
@replace()
|
||||||
@beforeSetup()
|
@beforeSetup()
|
||||||
@setup() if Conf['Auto-load captcha']
|
@setup() if Conf['Auto-load captcha']
|
||||||
new MutationObserver(@afterSetup).observe $.id('captchaContainerAlt'), childList: true
|
new MutationObserver(@afterSetup).observe $.id('captchaContainerAlt'), childList: true
|
||||||
@ -49,7 +50,6 @@ Captcha.v1 =
|
|||||||
$.replace old, container
|
$.replace old, container
|
||||||
|
|
||||||
create: ->
|
create: ->
|
||||||
@replace()
|
|
||||||
$.globalEval '''
|
$.globalEval '''
|
||||||
(function() {
|
(function() {
|
||||||
var container = document.getElementById("captchaContainerAlt");
|
var container = document.getElementById("captchaContainerAlt");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user