Skip to content

Commit 3706c36

Browse files
committed
Fix callback
1 parent 636f761 commit 3706c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = class Window extends BrowserWindow {
4747
// If no callback is passed to createWindow,
4848
// a new session will be created by default.
4949
if (!fn) {
50-
rpc.emit('termgroup add req');
50+
fn = () => rpc.emit('termgroup add req');
5151
}
5252

5353
// app.windowCallback is the createWindow callback

0 commit comments

Comments
 (0)