mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
remove unused utils
This commit is contained in:
parent
06dcf0b961
commit
79b1f620a3
@ -1,34 +0,0 @@
|
||||
import { Haptics, ImpactStyle } from "@capacitor/haptics"
|
||||
|
||||
export default {
|
||||
selectionStart: async () => {
|
||||
const enabled = window.app.cores.settings.get("haptic_feedback")
|
||||
|
||||
if (enabled) {
|
||||
await Haptics.selectionStart()
|
||||
}
|
||||
},
|
||||
selectionChanged: async () => {
|
||||
const enabled = window.app.cores.settings.get("haptic_feedback")
|
||||
|
||||
if (enabled) {
|
||||
await Haptics.selectionChanged()
|
||||
}
|
||||
},
|
||||
selectionEnd: async () => {
|
||||
const enabled = window.app.cores.settings.get("haptic_feedback")
|
||||
|
||||
if (enabled) {
|
||||
await Haptics.selectionEnd()
|
||||
}
|
||||
},
|
||||
impact: async (style = "Medium") => {
|
||||
const enabled = window.app.cores.settings.get("haptic_feedback")
|
||||
|
||||
if (enabled) {
|
||||
style = String(style).toTitleCase()
|
||||
|
||||
await Haptics.impact({ style: ImpactStyle[style] })
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
export { default as findChildById } from "./findChildById"
|
||||
export { default as cursorPosition } from "./cursorPosition"
|
||||
export { default as getBase64 } from "./getBase64"
|
||||
export { default as Haptics } from "./haptics"
|
||||
export { default as processString } from "./processString"
|
||||
export { default as deleteInternalStorage } from "./deleteInternalStorage"
|
||||
export { default as handleOpenDevTools } from "./handleOpenDevTools"
|
||||
|
Loading…
x
Reference in New Issue
Block a user