diff --git a/src/desktop/window.js b/src/desktop/window.js index 3c1534fa..55a06fb0 100644 --- a/src/desktop/window.js +++ b/src/desktop/window.js @@ -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 ) }