mstralka (9) [Avatar] Offline
#1
openFiles.get(targetWindow).close();


should be:

openFiles.get(targetWindow).stop();


It is correct in https://github.com/electron-in-action/firesale/blob/chapter-6/app/main.js
Steve Kinney (33) [Avatar] Offline
#2
Thanks! I wish there was a way to keep the code in sync with Microsoft Word!