diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 6ad1c4154..ef6cddbf4 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11554,7 +11554,7 @@ elA = $.el('a', { textContent: text }); - if ((action = prev.firstElementChild).nodeName === 'FORM') { + if ((action = el.firstElementChild).nodeName === 'FORM') { elA.href = 'javascript:;'; $.on(elA, 'click', function() { return action.firstElementChild.click(); diff --git a/builds/crx/script.js b/builds/crx/script.js index 008f2fe47..1363909c2 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11542,7 +11542,7 @@ elA = $.el('a', { textContent: text }); - if ((action = prev.firstElementChild).nodeName === 'FORM') { + if ((action = el.firstElementChild).nodeName === 'FORM') { elA.href = 'javascript:;'; $.on(elA, 'click', function() { return action.firstElementChild.click(); diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 2bb69f095..fa837fe8a 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -39,7 +39,7 @@ Style = elA = $.el 'a', textContent: text - if (action = prev.firstElementChild).nodeName is 'FORM' + if (action = el.firstElementChild).nodeName is 'FORM' elA.href = 'javascript:;' $.on elA, 'click', -> action.firstElementChild.click()