vibrate when flagged

This commit is contained in:
Ayo 2019-12-08 20:56:37 +08:00
parent 1169af44c4
commit 20f1347127

View file

@ -748,6 +748,9 @@ export const Minesweeper = function() {
increaseFlagsCount();
setStatus(cell, 'default');
}
if ('vibrate' in navigator) {
navigator.vibrate(100);
}
if (TEST_MODE) loggerService.debug('right click', cell);
}
}