Skip to content

Commit

Permalink
accepts logo and icon files with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 11, 2024
1 parent 52a7c55 commit c41c8dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") });
Expand Down

0 comments on commit c41c8dc

Please sign in to comment.