We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d323f1 commit 02e6413Copy full SHA for 02e6413
1 file changed
renderer.js
@@ -71,6 +71,26 @@ onload = () => {
71
document.querySelector('#navbar-container .more-menu').onclick = () => {
72
menu.popup(require('electron').remote.getCurrentWindow());
73
}
74
+
75
+ document.querySelector('#navbar-container .minimize-window').onclick = () => {
76
+ const win = BrowserWindow.getFocusedWindow();
77
+ win.minimize();
78
+ }
79
80
+ document.querySelector('#navbar-container .toggle-window').onclick = () => {
81
82
+ if (win.isMaximized()) {
83
+ win.unmaximize();
84
+ } else {
85
+ win.maximize();
86
87
88
89
+ document.querySelector('#navbar-container .close-window').onclick = () => {
90
91
+ win.close();
92
93
94
// webview.openDevTools();
95
});
96
0 commit comments