mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Add conditional for preload functions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user