mirror of
https://codeberg.org/dragongoose/safetwitch.git
synced 2024-11-02 14:14:00 +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 { truncate, abbreviate, getEndpoint } from '@/mixins'
|
||||
import { chatVisible } from '@/settingsManager'
|
||||
import { chatVisible, getSetting } from '@/settingsManager'
|
||||
|
||||
export default {
|
||||
inject: ['rootBackendUrl'],
|
||||
|
@ -43,6 +43,12 @@ export default {
|
|||
}
|
||||
},
|
||||
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
|
||||
|
||||
await getEndpoint('api/users/' + username)
|
||||
|
|
Loading…
Reference in a new issue