mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
prevent focus loss (#4925)
This commit is contained in:
parent
0e0591262b
commit
c85205cef5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user