summaryrefslogtreecommitdiff
path: root/src/scripts/window-buttons.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/window-buttons.js')
-rw-r--r--src/scripts/window-buttons.js9
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