mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-228 - Added an event to terminate screen snippet process whenever the main window is reloaded/navigated
This commit is contained in:
@@ -181,6 +181,14 @@ function createWarn(msg) {
|
||||
}
|
||||
/* eslint-enable class-methods-use-this */
|
||||
|
||||
// terminates the screen snippet process wherever the
|
||||
// main window is reloaded/navigated
|
||||
eventEmitter.on('killScreenSnippet', function () {
|
||||
if (child) {
|
||||
child.kill();
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
ScreenSnippet: ScreenSnippet,
|
||||
// note: readResult only exposed for testing purposes
|
||||
|
||||
Reference in New Issue
Block a user