Fix issue when using base URL #1767

This commit is contained in:
LASER-Yi 2022-03-19 02:16:23 +08:00
parent 14888e01eb
commit 967795e1a6
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408
2 changed files with 2 additions and 3 deletions

View File

@ -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}

View File

@ -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;