split extensions to array

This commit is contained in:
jb-alvarado 2023-05-19 08:46:08 +02:00
parent 24c6f35ebd
commit 1fa826742e

View File

@ -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 },