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: Script with innerHTML not working on Safari #4861

Merged
merged 5 commits into from Sep 26, 2022
Merged

fix: Script with innerHTML not working on Safari #4861

merged 5 commits into from Sep 26, 2022

Conversation

rishi-raj-jain
Copy link
Contributor

@rishi-raj-jain rishi-raj-jain commented Sep 24, 2022

fixes #4859, specifically: #4859 (comment)

Have another approach in mind using (https://stackoverflow.com/questions/7944460/detect-safari-browser/31732310#31732310), but since define:vars is supposed to be used as passing prop on SSR (whether static build or SSR build), changing to a const shall not affect client-side operations. We might need to put alert on docs tho.

@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2022

🦋 Changeset detected

Latest commit: f9a0d75

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 24, 2022
Copy link
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, thank you!

@matthewp matthewp merged commit 42fe8e0 into withastro:main Sep 26, 2022
@astrobot-houston astrobot-houston mentioned this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script with innerHTML not working on Safari
2 participants