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

fix: use comments to allow proper loading of script #184

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

jaulz
Copy link
Contributor

@jaulz jaulz commented Nov 2, 2022

Right now, whenever an error occurs it just shows me a lot of JavaScript code:
image

When I had a look at the DOM tree I saw that the script tag is suddenly closed:
image

It seems that the following line in the script is closing the tag too early:

;(c.innerHTML = '<script></script>'),

Using comments as a wrapper of the script it does not close the script and it's working perfectly fine.

@AlexVanderbist
Copy link
Member

Great catch! Thanks for the PR 👌

@AlexVanderbist AlexVanderbist merged commit 09c6c4e into spatie:main Feb 28, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants