From 1fa826742ed65037b1e8ab4681b8a13cd3da1cd2 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 19 May 2023 08:46:08 +0200 Subject: [PATCH] split extensions to array --- stores/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stores/config.ts b/stores/config.ts index 4b93ec9d..a1f42e46 100644 --- a/stores/config.ts +++ b/stores/config.ts @@ -213,6 +213,8 @@ export const useConfig = defineStore('config', { const channel = this.configGui[this.configID].id 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}`, { method: 'PUT', headers: { ...contentType, ...authStore.authHeader },