(win: BrowserWindow)
| 327 | }; |
| 328 | |
| 329 | export const onWindowClass = (win: BrowserWindow) => { |
| 330 | modules.forEach((plugin) => { |
| 331 | if (plugin.onWindowClass) { |
| 332 | try { |
| 333 | plugin.onWindowClass(win); |
| 334 | } catch (e) { |
| 335 | notify('Plugin error!', `"${plugin._name}" has encountered an error. Check Developer Tools for details.`, { |
| 336 | error: e |
| 337 | }); |
| 338 | } |
| 339 | } |
| 340 | }); |
| 341 | }; |
| 342 | |
| 343 | export const onWindow = (win: BrowserWindow) => { |
| 344 | modules.forEach((plugin) => { |