[FIX] website_cf_turnstile: add missing class on script
A class s_turnstile added to the script tag was missing. Without it, the function cleanTurnstile called by the destroyed cannot clean the script tag. So it would result in the script being present several times in the DOM after some manipulation. fixes https://github.com/odoo/odoo/pull/147886 closes odoo/odoo#148783 X-original-commit: e5af8a16fccc784e21fcc30d891fafb5d0951d17 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
This commit is contained in:
@@ -20,7 +20,7 @@ publicWidget.registry.s_website_form.include({
|
||||
data-sitekey="${session.turnstile_site_key}"
|
||||
data-error-callback="throwTurnstileError"
|
||||
></div>
|
||||
<script>
|
||||
<script class="s_turnstile">
|
||||
// Rethrow the error, or we only will catch a "Script error" without any info
|
||||
// because of the script api.js originating from a different domain.
|
||||
function throwTurnstileError(code) {
|
||||
|
||||
Reference in New Issue
Block a user