Remove playground redirect link (#17181)
This commit is contained in:
1 parent
ca4ab12695
commit
e20d1fe82c
2 files changed
+1
-40
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
## Description
|
## Description
|
||||||
|
|
||||||
<!-- Please provide a brief summary of your changes: -->
|
<!-- Please provide a brief summary of your changes -->
|
||||||
|
|
||||||
## Checklist
|
## Checklist
|
||||||
|
|
||||||
@@ -11,7 +11,3 @@
|
|||||||
- [ ] (If changing the API or CLI) I’ve documented the changes I’ve made (in the `docs/` directory).
|
- [ ] (If changing the API or CLI) I’ve documented the changes I’ve made (in the `docs/` directory).
|
||||||
- [ ] (If the change is user-facing) I’ve added my changes to `changelog_unreleased/*/XXXX.md` file following `changelog_unreleased/TEMPLATE.md`.
|
- [ ] (If the change is user-facing) I’ve added my changes to `changelog_unreleased/*/XXXX.md` file following `changelog_unreleased/TEMPLATE.md`.
|
||||||
- [ ] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/main/CONTRIBUTING.md).
|
- [ ] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/main/CONTRIBUTING.md).
|
||||||
|
|
||||||
<!-- Please DO NOT remove the playground link -->
|
|
||||||
|
|
||||||
**✨[Try the playground for this PR](https://prettier.io/playground-redirect)✨**
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>Redirecting…</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Redirecting…</h1>
|
|
||||||
<p>
|
|
||||||
Redirecting you to the appropriate playground. If the redirect doesn’t
|
|
||||||
work, <a href="javascript:history.back()">go back to the PR</a> and click
|
|
||||||
the appropriate link:<br />
|
|
||||||
<img
|
|
||||||
src="https://cdn.netlify.com/f0b93f3003d5669924b6e73540bbfe07bc3d8d95/34c5d/img/blog/deploy-preview-workflow.gif"
|
|
||||||
alt="click on the link next to 'deploy/netlify'"
|
|
||||||
/>
|
|
||||||
</p>
|
|
||||||
<script>
|
|
||||||
const match =
|
|
||||||
/^https:\/\/github\.com\/prettier\/prettier\/pull\/(\d+)/.exec(
|
|
||||||
document.referrer,
|
|
||||||
);
|
|
||||||
if (match != null) {
|
|
||||||
const [, /* url */ pr] = match;
|
|
||||||
location.replace(
|
|
||||||
`https://deploy-preview-${pr}--prettier.netlify.app/playground`,
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
const el = document.createElement("p");
|
|
||||||
el.textContent = `The referrer URL (${document.referrer}) was not recognized. Sorry :(`;
|
|
||||||
document.body.appendChild(el);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in new issue
Block a user