()
| 315 | // which one of the existing window is the last focused. |
| 316 | // Works nicely even if a window is closed and removed. |
| 317 | const updateFocusTime = () => { |
| 318 | window.focusTime = process.uptime(); |
| 319 | }; |
| 320 | |
| 321 | window.on('focus', () => { |
| 322 | updateFocusTime(); |