Skip to content

Add <main> to default html #1476

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

Merged
merged 7 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/modules/IDE/reducers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const defaultHTML = `<!DOCTYPE html>

</head>
<body>
<main>
</main>
<script src="sketch.js"></script>
</body>
</html>
Expand Down
2 changes: 2 additions & 0 deletions client/modules/Preview/filesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const defaultHTML = `<!DOCTYPE html>

</head>
<body>
<main>
</main>
<script src="sketch.js"></script>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion client/testData/testReduxStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const initialTestState = {
},
{
name: 'index.html',
content: `<!DOCTYPE html> <html lang="en"> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> <meta charset="utf-8" /> </head> <body> <script src="sketch.js"></script> </body> </html>`,
content: `<!DOCTYPE html> <html lang="en"> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> <meta charset="utf-8" /> </head> <body> <main> </main> <script src="sketch.js"></script> </body> </html>`,
id: '606fc1c46045e19ca2ee2646',
_id: '606fc1c46045e19ca2ee2646',
fileType: 'file',
Expand Down
4 changes: 3 additions & 1 deletion server/domain-objects/createDefaultFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function draw() {
}`;

const defaultHTML = `<!DOCTYPE html>
<html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script>
Expand All @@ -16,6 +16,8 @@ const defaultHTML = `<!DOCTYPE html>

</head>
<body>
<main>
</main>
<script src="sketch.js"></script>
</body>
</html>
Expand Down
1 change: 1 addition & 0 deletions server/scripts/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const defaultHTML = `<!DOCTYPE html>
<meta charset="utf-8" />
</head>
<body>
<main></main>
<script src="sketch.js"></script>
</body>
</html>
Expand Down