Added drone FW version to main window title#868
Conversation
ProgramPhantom
commented
Nov 23, 2025
- Removed <title> from index.html so it doesn't overwrite Electron
- Added a new ipc handler for changing window title
- Triggered ipc handler when drone SW version is set
* Added a new ipc handler for changing window title * Triggered ipc handler when drone SW version is set
|
Oh looks like Playwright has failed too. I'm not sure what it's saying can you decode this output? Everything seems completely fine when using the app... |
It's failing because it's trying to find the window called "FGCS" but if it's changed name it can't find it, so update the if statement in |
|
Same for the test in the dashboard, surely there's a way to get the window title as a variable and compare that? |
|
I've been having a lot of trouble fixing this. For some reason the title of the main window is coming back as an empty string, and remains that way even after reverting all relevant changes I made in this PR. This causes the I have found a fix thanks to ChatGPT, but I don't know what the problem was. The fix involves accessing the main window via matching it to the // Wait for the main window to appear
sharedMainWindow = await sharedElectronApp.waitForEvent("window", {
predicate: async (window) => {
const url = window.url();
return url.endsWith("index.html");
},
timeout: 30000,
})and also adding this to the rollup options in the vite config. build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
linkStats: resolve(__dirname, "linkStats.html"),
aboutWindow: resolve(__dirname, "aboutWindow.html"),
videoWindow: resolve(__dirname, "videoWindow.html"),
ekfStatus: resolve(__dirname, "ekfStatus.html"),
vibeStatus: resolve(__dirname, "vibeStatus.html"),
},
output: {
intro: `document.title = "FGCS";` // Here
}
},
},Which really shouldn't be necessary. |
|
Okay I found the fix. Turns out I did need to replace the |





