Commit fcfcc62d authored by Florent Berthelot's avatar Florent Berthelot

add test if win exist before send log

parent 2083f29a
...@@ -7,7 +7,7 @@ export class IPCTransport extends Transport { ...@@ -7,7 +7,7 @@ export class IPCTransport extends Transport {
} }
log(info: any, callback: any) { log(info: any, callback: any) {
win.webContents.send('log', info); if (win) win.webContents.send('log', info);
callback(); callback();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment