Fix vibration on iphone
This commit is contained in:
parent
7162dc69b9
commit
45b6588701
4 changed files with 16 additions and 10 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { SoundHandler, Sounds } from './sound-handler';
|
||||
import { VibrationHandler } from './vibration-handler';
|
||||
|
||||
interface Options {
|
||||
vibrationEnabled: boolean;
|
||||
|
|
@ -47,7 +48,7 @@ export abstract class OptionsHandler {
|
|||
}
|
||||
|
||||
if (this.checked && k === 'vibrationEnabled') {
|
||||
navigator.vibrate(100);
|
||||
VibrationHandler.vibrate(100);
|
||||
}
|
||||
|
||||
SoundHandler.play(Sounds.click);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue