Skip to content

Commit a9e84ff

Browse files
committed
COMPASS-2351: Prevent will-navigate events (#1348)
1 parent f1f2923 commit a9e84ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/window-manager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ var createWindow = module.exports.create = function(opts) {
137137
}
138138
});
139139

140+
_loading.webContents.on('will-navigate', (evt) => evt.preventDefault());
141+
140142
_loading.on('move', () => {
141143
const position = _loading.getPosition();
142144
_window.setPosition(position[0], position[1]);

0 commit comments

Comments
 (0)