mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 00:03:33 +00:00
Fix issue when using base URL #1767
This commit is contained in:
parent
14888e01eb
commit
967795e1a6
2 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue