fix: address claude review action items

This commit is contained in:
2026-02-26 23:27:25 -08:00
parent d4805395fa
commit bc6f581ea5
4 changed files with 10 additions and 11 deletions

View File

@@ -27,9 +27,7 @@ export function sendToVisibleOverlayRuntime<T extends string>(options: {
}
};
const getURL = options.mainWindow.webContents.getURL;
const currentURL =
typeof getURL === 'function' ? getURL.call(options.mainWindow.webContents) : 'ready';
const currentURL = options.mainWindow.webContents.getURL();
const isReady =
!options.mainWindow.webContents.isLoading() &&
currentURL !== '' &&