mirror of
https://codeberg.org/dragongoose/safetwitch.git
synced 2024-09-16 04:52:32 +00:00
Redirect if audio only
This commit is contained in:
parent
119d1a1eb6
commit
64fdfc664a
1 changed files with 7 additions and 1 deletions
|
@ -12,7 +12,7 @@ import AudioPlayer from '@/components/AudioPlayer.vue'
|
||||||
|
|
||||||
import type { StreamerData } from '@/types'
|
import type { StreamerData } from '@/types'
|
||||||
import { truncate, abbreviate, getEndpoint } from '@/mixins'
|
import { truncate, abbreviate, getEndpoint } from '@/mixins'
|
||||||
import { chatVisible } from '@/settingsManager'
|
import { chatVisible, getSetting } from '@/settingsManager'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
inject: ['rootBackendUrl'],
|
inject: ['rootBackendUrl'],
|
||||||
|
@ -43,6 +43,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
// check if audio only
|
||||||
|
const audioOnly = getSetting("audioOnly")
|
||||||
|
if (audioOnly) {
|
||||||
|
this.$router.push({ query: { "audio-only": "true" } })
|
||||||
|
}
|
||||||
|
|
||||||
const username = this.$route.params.username
|
const username = this.$route.params.username
|
||||||
|
|
||||||
await getEndpoint('api/users/' + username)
|
await getEndpoint('api/users/' + username)
|
||||||
|
|
Loading…
Reference in a new issue