Rename AppModule to InitModule

This commit is contained in:
Kasper Seweryn 2022-04-23 14:48:29 +02:00 committed by Georg Krause
commit b959371784
10 changed files with 20 additions and 20 deletions

View file

@ -1,8 +1,8 @@
import { AppModule } from '~/types'
import { InitModule } from '~/types'
import { watchEffect, watch } from '@vue/composition-api'
import { useWebSocket, whenever } from '@vueuse/core'
export const install: AppModule = ({ store }) => {
export const install: InitModule = ({ store }) => {
watch(() => store.state.instance.instanceUrl, () => {
const url = store.getters['instance/absoluteUrl']('api/v1/activity')
.replace(/^http/, 'ws')