fix: use native haptic plugin and remove semicolons

This commit is contained in:
benonymity
2022-12-08 19:09:46 -05:00
parent 1aa6a441f3
commit acc5bde33a
16 changed files with 65 additions and 87 deletions
+1 -2
View File
@@ -70,7 +70,6 @@
<script>
import { Capacitor } from '@capacitor/core'
import { Haptics, ImpactStyle } from '@capacitor/haptics';
export default {
props: {
@@ -408,7 +407,7 @@ export default {
e.preventDefault()
this.selectBtnClick()
} else if (this.recentEpisode) {
await Haptics.impact({ style: ImpactStyle.Medium });
await this.$hapticsImpactMedium()
var eventBus = this.$eventBus || this.$nuxt.$eventBus
if (this.streamIsPlaying) {
eventBus.$emit('pause-item')