mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +03:00
Reload after restart to the baseUrl
This commit is contained in:
parent
ef365665de
commit
90fba2ab70
@ -67,6 +67,7 @@ import {
|
||||
} from "../ui/dialog";
|
||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { baseUrl } from "@/api/baseUrl";
|
||||
|
||||
type GeneralSettingsProps = {
|
||||
className?: string;
|
||||
@ -95,12 +96,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
|
||||
|
||||
useEffect(() => {
|
||||
if (countdown === 0) {
|
||||
window.location.href = "/";
|
||||
window.location.href = baseUrl;
|
||||
}
|
||||
}, [countdown]);
|
||||
|
||||
const handleForceReload = () => {
|
||||
window.location.href = "/";
|
||||
window.location.href = baseUrl;
|
||||
};
|
||||
|
||||
const Container = isDesktop ? DropdownMenu : Drawer;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user