From 568debd74070ecb23433a8fb413b48dcc56141eb Mon Sep 17 00:00:00 2001 From: altaf-creator <64111012+altaf-creator@users.noreply.github.com> Date: Wed, 3 May 2023 22:12:11 +0700 Subject: Initial commit --- src/scripts/window-buttons.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/scripts/window-buttons.js (limited to 'src/scripts/window-buttons.js') diff --git a/src/scripts/window-buttons.js b/src/scripts/window-buttons.js new file mode 100644 index 0000000..5c4f0da --- /dev/null +++ b/src/scripts/window-buttons.js @@ -0,0 +1,9 @@ +const { ipcRenderer } = require('electron'); + +document.getElementById('minimize').addEventListener('click', () => { + ipcRenderer.send('min'); +}) + +document.getElementById('maximize').addEventListener('click', () => { + ipcRenderer.send('max'); +}) \ No newline at end of file -- cgit v1.2.3