We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352d848 commit c1934abCopy full SHA for c1934ab
main.js
@@ -6,6 +6,10 @@ const xml = require("xml2js");
6
const net = require('net');
7
const WebSocket = require('ws');
8
9
+// In some cases we need to make the WLgate window resizable (for example for tiling window managers)
10
+// Default: false
11
+const resizable = process.env.WLGATE_RESIZABLE === 'true' || false;
12
+
13
const gotTheLock = app.requestSingleInstanceLock();
14
15
let powerSaveBlockerId;
@@ -47,7 +51,7 @@ function createWindow () {
47
51
const mainWindow = new BrowserWindow({
48
52
width: 430,
49
53
height: 250,
50
- resizable: false,
54
+ resizable: resizable, // Default: false, can be overwritten with WLGATE_RESIZABLE
55
autoHideMenuBar: app.isPackaged,
56
webPreferences: {
57
contextIsolation: false,
0 commit comments