chore: make codesandbox demo simpler

This commit is contained in:
Justineo
2021-03-02 22:27:14 +08:00
parent d8f8b9286f
commit 2d60a4d750
3 changed files with 7 additions and 11 deletions

View File

@ -53,19 +53,15 @@ async function getSandboxParams(version) {
content: `<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./index.css">
<style>
${css}</style>
</head>
<body>
${html}${scripts[version]}
<script src="./index.js"></script>
<script>
${js}</script>
</body>
</html>`
},
"index.js": {
content: js
},
"index.css": {
content: css
}
}
};