diff --git a/src/node/StreamWindow.js b/src/node/StreamWindow.js index 8beccce..4787cca 100644 --- a/src/node/StreamWindow.js +++ b/src/node/StreamWindow.js @@ -135,6 +135,12 @@ export default class StreamWindow extends EventEmitter { }) view.setBackgroundColor(backgroundColor) + // Prevent view pages from navigating away from the specified URL. + view.webContents.on('will-navigate', (ev) => { + console.log(ev) + ev.preventDefault() + }) + const machine = viewStateMachine .withContext({ ...viewStateMachine.context,