prevent focus loss (#4925)

This commit is contained in:
Jack Kavanagh 2022-07-04 13:35:16 +02:00 committed by GitHub
parent 0e0591262b
commit c85205cef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,8 @@ export function createWindow() {
// Open generic links (<a .../>) in default browser
mainWindow?.webContents.on('will-navigate', (event, url) => {
if (url === appUrl) {
// Prevents local dev full-reload events from opening browser window, see https://github.com/Kong/insomnia/pull/4925
if (url.startsWith(appUrl)) {
return;
}