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

Update README.md for src= syntax #2869

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Update README.md for src= syntax #2869

merged 1 commit into from
Jun 27, 2023

Conversation

orta
Copy link
Contributor

@orta orta commented Jun 27, 2023

The playground supports the old URI encoded src= syntax, not src/

if (location.hash.startsWith("#src")) {
const code = location.hash.replace("#src=", "").trim()
return decodeURIComponent(code)
}

@jakebailey jakebailey enabled auto-merge (squash) June 27, 2023 15:48
@jakebailey jakebailey merged commit 0cc78d2 into microsoft:v2 Jun 27, 2023
5 checks passed
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.

2 participants