From 3589257e432ba2b173678ddc83e3074a8d801565 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Mon, 26 Jun 2023 08:26:03 +0200 Subject: [PATCH] return url with, fix ffplayout#336 --- composables/helper.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composables/helper.ts b/composables/helper.ts index 72593a59..babc7369 100644 --- a/composables/helper.ts +++ b/composables/helper.ts @@ -46,7 +46,13 @@ export const stringFormatter = () => { function filename(path: string) { if (path) { const pathArr = path.split('/') - return pathArr[pathArr.length - 1] + const name = pathArr[pathArr.length - 1] + + if (name) { + return name + } else { + return path + } } else { return '' }