From 6b0423ebb0118450c2ea9cda64f4ddf7547b08db Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 17 Jan 2018 16:39:39 +0200 Subject: [PATCH] Close button handler --- tests/csseditor/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/csseditor/main.js b/tests/csseditor/main.js index 73fdca97..b41d3215 100644 --- a/tests/csseditor/main.js +++ b/tests/csseditor/main.js @@ -14,6 +14,8 @@ const $btnSave = $('#btnSave'), $btnUpdate = $('#btnUpdate'); +$closeeditor.on('click', e => window.close()); + ipcRenderer.on('set-css', (_, data) => { if (data.error) { alert(data.error);