mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use 1 instead of true for consistency.
This commit is contained in:
parent
b8881b3a46
commit
2f9964580f
@ -83,16 +83,12 @@
|
|||||||
this.$i18n.locale = default_lang
|
this.$i18n.locale = default_lang
|
||||||
}
|
}
|
||||||
const show_side = new URL(location.href).searchParams.get('show_side')
|
const show_side = new URL(location.href).searchParams.get('show_side')
|
||||||
if (show_side && show_side === 'true') {
|
if (show_side !== null) {
|
||||||
this.$accessor.client.showSide()
|
this.$accessor.client.setSide(show_side === '1')
|
||||||
} else if (show_side && show_side === 'false') {
|
|
||||||
this.$accessor.client.hideSide()
|
|
||||||
}
|
}
|
||||||
const mute_chat = new URL(location.href).searchParams.get('mute_chat')
|
const mute_chat = new URL(location.href).searchParams.get('mute_chat')
|
||||||
if (mute_chat && mute_chat === 'true') {
|
if (mute_chat !== null) {
|
||||||
this.$accessor.settings.setSound(false)
|
this.$accessor.settings.setSound(mute_chat !== '1')
|
||||||
} else if (mute_chat && mute_chat === 'false') {
|
|
||||||
this.$accessor.settings.setSound(true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,13 +27,9 @@ export const mutations = mutationTree(state, {
|
|||||||
state.side = !state.side
|
state.side = !state.side
|
||||||
set('side', state.side)
|
set('side', state.side)
|
||||||
},
|
},
|
||||||
showSide(state) {
|
setSide(state, side: boolean) {
|
||||||
state.side = true
|
state.side = side
|
||||||
set('side', state.side)
|
set('side', side)
|
||||||
},
|
|
||||||
hideSide(state) {
|
|
||||||
state.side = false
|
|
||||||
set('side', state.side)
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -257,8 +257,8 @@ NEKO_BROADCAST_PIPELINE: "flvmux name=mux ! rtmpsink location={url} pulsesrc dev
|
|||||||
- Adding `?embed=1` will hide most additional components and show only video.
|
- Adding `?embed=1` will hide most additional components and show only video.
|
||||||
- Adding `?volume=<0-1>` will set volume to given value.
|
- Adding `?volume=<0-1>` will set volume to given value.
|
||||||
- Adding `?lang=<language>` will set language to given value.
|
- Adding `?lang=<language>` will set language to given value.
|
||||||
- Adding `?show_side=true` will show the sidebar on startup.
|
- Adding `?show_side=1` will show the sidebar on startup.
|
||||||
- Adding `?mute_chat=true` will mute the chat on startup.
|
- Adding `?mute_chat=1` will mute the chat on startup.
|
||||||
- e.g. `http(s)://<URL:Port>/?pwd=neko&usr=guest&cast=1`
|
- e.g. `http(s)://<URL:Port>/?pwd=neko&usr=guest&cast=1`
|
||||||
|
|
||||||
### Screen size
|
### Screen size
|
||||||
|
Loading…
Reference in New Issue
Block a user