Skip to content

Commit

Permalink
"
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-adriansens authored Nov 30, 2023
1 parent 4c984a2 commit cb0ba5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ class Game {
piece.placeBlock(false, true, old_shape);

// draw new stored shape
if (storedBlockCanvas.classList.contains("youtube_background")) {
storedBlockCanvas.classList.remove("youtube_background");
}

if (old_stored_piece == undefined) {
piece.placeBlock();
return;
Expand Down
4 changes: 4 additions & 0 deletions src/js/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ window.onload = () => {
change_dimensions(true);
});

storedBlockCanvas.onclick = () => {
window.open("https://www.youtube.com/channel/UCkuuvKL973p_36xk2sC9phg");
};

document.addEventListener("visibilitychange", () => {
if (!game) return;

Expand Down

0 comments on commit cb0ba5f

Please sign in to comment.