Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on building-sites/elements/chunks #425

Open
anton-zaharov opened this issue Nov 1, 2022 · 0 comments
Open

Issue on building-sites/elements/chunks #425

anton-zaharov opened this issue Nov 1, 2022 · 0 comments

Comments

@anton-zaharov
Copy link

Affected page(s)

The chunk is return empty string when has fragment "{return..." in it without space after "{"
For example, native chunk recaptchav2_invisible_html return empty string

<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=[[++cultureKey]]"></script>
<script>function recaptchaV2SubmitForm(response)**{return** new Promise(function(){document.getElementById('[[+form_id]]').submit();})}</script>
<button type="submit" class="g-recaptcha" name="login" data-sitekey="[[+site_key]]" data-callback="recaptchaV2SubmitForm">Login</button>

But after adding space before "return" work normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant