Skip to content

Commit 9b3c3bb

Browse files
Fix last open repl logic on focus (#123)
1 parent 2c19e72 commit 9b3c3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export function createWindow(props?: WindowProps): BrowserWindow {
210210
});
211211

212212
window.on('focus', () => {
213-
setLastOpenRepl(url, lastOpenRepl);
213+
setLastOpenRepl(window.webContents.getURL(), lastOpenRepl);
214214
});
215215

216216
window.on('enter-full-screen', () => {

0 commit comments

Comments
 (0)