Skip to content

Commit

Permalink
feat: vibrate on long press
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelhenke committed Sep 22, 2022
1 parent 5e40903 commit 706ef4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/minesweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ export class Minesweeper extends LitElement {
}
};
animationInterval = setInterval(scale, 2);
if (typeof window.navigator.vibrate === 'function') {
window.navigator.vibrate(100);
}
}

/**
Expand Down

0 comments on commit 706ef4d

Please sign in to comment.