chore(electrobun): revert to real app mode (resize test flags disabled)
This commit is contained in:
parent
8f4ec379ee
commit
61466b53c6
1 changed files with 5 additions and 7 deletions
|
|
@ -203,7 +203,7 @@ relayClient.onStatus((machineId, status, error) => {
|
|||
|
||||
async function getMainViewUrl(): Promise<string> {
|
||||
// TEMPORARY: load resize test stub via Vite dev server (keeps RPC bridge)
|
||||
const RESIZE_TEST = true; // STUB MODE — minimal page for resize testing
|
||||
const RESIZE_TEST = false; // DISABLED — real app mode
|
||||
if (RESIZE_TEST) {
|
||||
const testUrl = DEV_SERVER_URL + "/resize-test.html";
|
||||
console.log(`[RESIZE_TEST] Loading stub via Vite: ${testUrl}`);
|
||||
|
|
@ -226,12 +226,10 @@ connectToDaemon();
|
|||
|
||||
const url = await getMainViewUrl();
|
||||
|
||||
// Use 800x600 for resize testing; normal mode uses saved values
|
||||
const RESIZE_TEST_ACTIVE = true; // HARDCODED — revert after testing
|
||||
const savedX = RESIZE_TEST_ACTIVE ? 200 : Number(settingsDb.getSetting("win_x") ?? 100);
|
||||
const savedY = RESIZE_TEST_ACTIVE ? 200 : Number(settingsDb.getSetting("win_y") ?? 100);
|
||||
const savedWidth = RESIZE_TEST_ACTIVE ? 800 : Number(settingsDb.getSetting("win_width") ?? 1400);
|
||||
const savedHeight = RESIZE_TEST_ACTIVE ? 600 : Number(settingsDb.getSetting("win_height") ?? 900);
|
||||
const savedX = Number(settingsDb.getSetting("win_x") ?? 100);
|
||||
const savedY = Number(settingsDb.getSetting("win_y") ?? 100);
|
||||
const savedWidth = Number(settingsDb.getSetting("win_width") ?? 1400);
|
||||
const savedHeight = Number(settingsDb.getSetting("win_height") ?? 900);
|
||||
|
||||
mainWindow = new BrowserWindow({
|
||||
title: "Agent Orchestrator",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue