split extensions to array
This commit is contained in:
parent
24c6f35ebd
commit
1fa826742e
@ -213,6 +213,8 @@ export const useConfig = defineStore('config', {
|
|||||||
const channel = this.configGui[this.configID].id
|
const channel = this.configGui[this.configID].id
|
||||||
const contentType = { 'content-type': 'application/json;charset=UTF-8' }
|
const contentType = { 'content-type': 'application/json;charset=UTF-8' }
|
||||||
|
|
||||||
|
obj.storage.extensions = obj.storage.extensions.replace(' ', '').split(/,|;/)
|
||||||
|
|
||||||
const update = await fetch(`/api/playout/config/${channel}`, {
|
const update = await fetch(`/api/playout/config/${channel}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
headers: { ...contentType, ...authStore.authHeader },
|
headers: { ...contentType, ...authStore.authHeader },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user