mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 00:45:50 +02:00
feat(frontend): introduce haptic feedback as experimental feature
#16410
This commit is contained in:
13
packages/frontend/src/utility/haptic.ts
Normal file
13
packages/frontend/src/utility/haptic.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { haptic as _haptic } from 'ios-haptics';
|
||||
import { prefer } from '@/preferences.js';
|
||||
|
||||
export function haptic() {
|
||||
if (prefer.s['experimental.enableHapticFeedback']) {
|
||||
_haptic();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user