Add conditional for preload functions

This commit is contained in:
jeffvli 2022-12-25 01:25:46 -08:00
parent 4614358163
commit 1fbdfe725c
9 changed files with 13 additions and 10 deletions

View file

@ -4,7 +4,7 @@ import { Navigate, Outlet, useLocation } from 'react-router-dom';
import { AppRoute } from '/@/renderer/router/routes';
import { useCurrentServer } from '/@/renderer/store';
const localSettings = window.electron.localSettings;
const localSettings = isElectron() ? window.electron.localSettings : null;
export const AppOutlet = () => {
const location = useLocation();