Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim authored Nov 29, 2023
2 parents 3ee9899 + f725abd commit 2b592b9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions client/modules/IDE/components/Header/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const Toolbar = (props) => {
checked={autorefresh}
onChange={(event) => {
dispatch(setAutorefresh(event.target.checked));
if (event.target.checked) {
dispatch(startSketch());
}
}}
/>
<label htmlFor="autorefresh" className="toolbar__autorefresh-label">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p5.js-web-editor",
"version": "2.9.3",
"version": "2.10.0",
"description": "The web editor for p5.js.",
"scripts": {
"clean": "rimraf dist",
Expand Down
8 changes: 7 additions & 1 deletion server/controllers/session.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export function destroySession(req, res, next) {
next(err);
return;
}
res.json({ success: true });
req.session.destroy((error) => {
if (error) {
next(error);
return;
}
res.json({ success: true });
});
});
}
4 changes: 2 additions & 2 deletions server/domain-objects/createDefaultFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function draw() {
export const defaultHTML = `<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.8.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.8.0/addons/p5.sound.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
Expand Down

0 comments on commit 2b592b9

Please sign in to comment.