From c41c8dc2d0a4822712c4e79eddd55a6222b25fa4 Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Fri, 11 Oct 2024 14:32:56 -0300 Subject: [PATCH] accepts logo and icon files with spaces --- frontend/src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.js b/frontend/src/App.js index 938ff72..616e983 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -157,13 +157,13 @@ const App = () => { .then((color) => { setPrimaryColorDark(color || "#39ACE7") }) .catch((error) => { console.log("Error reading setting", error); }); getPublicSetting("appLogoLight") - .then((file) => { setAppLogoLight(file ? (getBackendURL()+"/public/"+file) : defaultLogoLight) }, (_) => { }) + .then((file) => { setAppLogoLight(file ? (`"${getBackendURL()}/public/${file}"`) : defaultLogoLight) }, (_) => { }) .catch((error) => { console.log("Error reading setting", error); }); getPublicSetting("appLogoDark") - .then((file) => { setAppLogoDark(file ? (getBackendURL()+"/public/"+file) : defaultLogoDark) }) + .then((file) => { setAppLogoDark(file ? (`"${getBackendURL()}/public/${file}"`) : defaultLogoDark) }) .catch((error) => { console.log("Error reading setting", error); }); getPublicSetting("appLogoFavicon") - .then((file) => { setAppLogoFavicon(file ? (getBackendURL()+"/public/"+file) : null) }) + .then((file) => { setAppLogoFavicon(file ? (`"${getBackendURL()}/public/${file}"`) : null) }) .catch((error) => { console.log("Error reading setting", error); }); getPublicSetting("appName").then((name) => { setAppName(name || "ticketz") }) .catch((error) => { console.log("Error reading setting", error); setAppName("whitelabel chat") });