Skip to content

Commit

Permalink
Use the holy cross.
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanpingle committed Sep 29, 2024
1 parent 3829bdc commit d7b9fa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/holyCross.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function onKeyDown(event: KeyboardEvent) {
// Check if the correct key was pressed
if (goldenPathDirections[goldenPathIndex] !== directionPressed) {
// Wrong key was pressed
console.log("WRONG");
goldenPathIndex = 0;
return;
} else {
Expand All @@ -51,7 +50,7 @@ function onKeyDown(event: KeyboardEvent) {

function onGoldenPathTravelled() {
// TODO: Do something cool
console.log("GOLDEN PATH TRAVELLED!");
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
}

export function addGoldenPathListener() {
Expand Down

0 comments on commit d7b9fa0

Please sign in to comment.