Skip to content

Commit

Permalink
1.9.13
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Apr 1, 2024
1 parent a8e9736 commit 98a566e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "quinton-ashley",
"name": "q5",
"version": "1.9.12",
"version": "1.9.13",
"description": "An implementation of the p5.js 2D API that's smaller and faster",
"main": "q5-server.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ function Q5(scope, parent) {
};

$.fullscreen = (v) => {
if (!v === undefined) return document.fullscreenElement;
if (v) document.requestFullscreen();
else document.exitFullscreen();
if (v === undefined) return document.fullscreenElement;
if (v) document.body.requestFullscreen();
else document.body.exitFullscreen();
};

// MATH
Expand Down
2 changes: 1 addition & 1 deletion q5.min.js

Large diffs are not rendered by default.

0 comments on commit 98a566e

Please sign in to comment.