Update:Remove call to server for settings filter/sort/playback rate

This commit is contained in:
advplyr 2022-12-17 14:48:56 -06:00
parent 4fd4cc5604
commit 0890a44c0b
8 changed files with 52 additions and 75 deletions

View file

@ -5,8 +5,6 @@ import { StatusBar, Style } from '@capacitor/status-bar';
import { formatDistance, format, addDays, isDate } from 'date-fns'
import { Capacitor } from '@capacitor/core';
Vue.prototype.$eventBus = new Vue()
if (Capacitor.getPlatform() != 'web') {
const setStatusBarStyleDark = async () => {
await StatusBar.setStyle({ style: Style.Dark })
@ -206,7 +204,9 @@ Vue.prototype.$setOrientationLock = (orientationLockSetting) => {
}
}
export default ({ store, app }) => {
export default ({ store, app }, inject) => {
inject('eventBus', new Vue())
// iOS Only
// backButton event does not work with iOS swipe navigation so use this workaround
if (app.router && Capacitor.getPlatform() === 'ios') {