diff options
author | altaf-creator <64111012+altaf-creator@users.noreply.github.com> | 2023-05-03 22:12:11 +0700 |
---|---|---|
committer | altaf-creator <64111012+altaf-creator@users.noreply.github.com> | 2023-05-03 22:12:11 +0700 |
commit | 568debd74070ecb23433a8fb413b48dcc56141eb (patch) | |
tree | 1916a58c3a5ec60827da2ea6e38baf2116b266d2 /src/scripts/window-buttons.js |
Initial commit
Diffstat (limited to 'src/scripts/window-buttons.js')
-rw-r--r-- | src/scripts/window-buttons.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 |