Fix issue when using base URL #1767

pull/1773/head
LASER-Yi 3 years ago
parent 14888e01eb
commit 967795e1a6
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408

@ -3,7 +3,7 @@ import { ActionButton, SearchBar } from "@/components";
import { setSidebar } from "@/modules/redux/actions";
import { useIsOffline } from "@/modules/redux/hooks";
import { useReduxAction } from "@/modules/redux/hooks/base";
import { useGotoHomepage, useIsMobile } from "@/utilities";
import { Environment, useGotoHomepage, useIsMobile } from "@/utilities";
import {
faBars,
faHeart,
@ -83,7 +83,7 @@ const Header: FunctionComponent = () => {
<div className="header-icon px-3 m-0 d-none d-md-block">
<Image
alt="brand"
src="/static/logo64.png"
src={`${Environment.baseUrl}/static/logo64.png`}
width="32"
height="32"
onClick={goHome}

@ -32,7 +32,6 @@ export const Environment = {
},
get baseUrl(): string {
if (isDevEnv || isTestEnv) {
// TODO: Support overriding base URL in development env
return "";
} else {
let url = window.Bazarr.baseUrl;

Loading…
Cancel
Save