Fix vibration on iphone
This commit is contained in:
parent
7162dc69b9
commit
45b6588701
4 changed files with 16 additions and 10 deletions
9
frontend/src/scripts/vibration-handler.ts
Normal file
9
frontend/src/scripts/vibration-handler.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { OptionsHandler } from './options-handler';
|
||||
|
||||
export abstract class VibrationHandler {
|
||||
public static vibrate(time: number): void {
|
||||
if (OptionsHandler.options.vibrationEnabled) {
|
||||
navigator?.vibrate(time);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue