Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkolesidis committed Jun 12, 2024
1 parent 929f461 commit 0fe4c4b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Lastly, we should mention the concept of **chording**. When an uncovered square
- ❔button toggles the **help modal**
- 🚩 button toggles **flag mode** (for touchscreens)
- ☀️/🌔 button toggles **dark mode**
- There is an **easter egg** in the game, can you find it? 😸
- There is an **Easter egg** in the game, can you find it? 😸

### Keyboard Controls

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

| Version | Supported |
| ------- | ------------------ |
| 8.0.1 | :white_check_mark: |
| < 8.0.1 | :x: |
| 8.0.2 | :white_check_mark: |
| < 8.0.2 | :x: |

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "emoji-minesweeper",
"author": "Michael Kolesidis",
"license": "AGPL-3.0-or-later",
"version": "8.0.1",
"version": "8.0.2",
"description": "Minesweeper made with emoji. The most fun way to play minesweeper! 😄",
"private": false,
"type": "module",
Expand Down
6 changes: 5 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,12 @@ if (window.location.hash === '#debug') {
/**
* Easter Egg
*/
let easterEggActivated = false;

document.addEventListener('keydown', event => {
if (event.code === 'KeyC') {
if (event.code === 'KeyC' && !easterEggActivated) {
easterEggActivated = true;

setInterval(addEasterEgg, 2000);

function addEasterEgg() {
Expand Down
1 change: 0 additions & 1 deletion styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ input {
/* Keyframe values control where the element will begin
and end its trajectory across the screen. Each rule
represents a path the element follows across the screen. */

@keyframes fly {
98.001%,
0% {
Expand Down

0 comments on commit 0fe4c4b

Please sign in to comment.