Update Window Configuration and Code Formatting
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Changed the development server port from 5780 to 5173 for updated local development settings.
- Reformatted import statements for better readability and consistency.
- Simplified the timeout function call in handleWindowControl for improved code clarity.
This commit is contained in:
Tom Butcher 2026-09-18 10:22:42 +01:00
parent 9ca872e589
commit 7ab05c8c2d

View File

@ -13,7 +13,10 @@ import {
clampWindowToWorkArea,
isWindowWorkAreaMaximized
} from './windows-work-area.js'
import { findProtocolUrl, setSingleInstanceHandlers } from './single-instance.js'
import {
findProtocolUrl,
setSingleInstanceHandlers
} from './single-instance.js'
import { getAppSettings } from './store.js'
import {
getWindowSessionFile,
@ -24,7 +27,7 @@ import {
const isMacOS = process.platform === 'darwin'
const isWindows = process.platform === 'win32'
const WINDOWS_STARTUP_MAXIMIZE_DELAY_MS = 1500
const DEV_SERVER_PORT = 5780
const DEV_SERVER_PORT = 5173
const DEV_SERVER_URL = `http://localhost:${DEV_SERVER_PORT}`
const DEFAULT_DASHBOARD_PATH = '/dashboard/production/overview'
const PROTOCOL_PREFIX = 'farmcontrol://'
@ -728,10 +731,7 @@ export function handleWindowControl(action, windowId) {
if (isWindows) {
setTimeout(
() =>
handleWindowsWindowChange(
window,
windowId || getFocusedWindowId()
),
handleWindowsWindowChange(window, windowId || getFocusedWindowId()),
100
)
}