livedesk 0.1.565 → 0.1.566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/electron/main.mjs +11 -9
- package/package.json +1 -1
package/electron/main.mjs
CHANGED
|
@@ -879,15 +879,17 @@ function showWindow() {
|
|
|
879
879
|
mainWindow.focus();
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
function createMainWindow() {
|
|
883
|
-
const iconPath = appResource('electron', 'icon.png');
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
882
|
+
function createMainWindow() {
|
|
883
|
+
const iconPath = appResource('electron', 'icon.png');
|
|
884
|
+
Menu.setApplicationMenu(null);
|
|
885
|
+
mainWindow = new BrowserWindow({
|
|
886
|
+
width: 1440,
|
|
887
|
+
height: 960,
|
|
888
|
+
minWidth: 1080,
|
|
889
|
+
minHeight: 720,
|
|
890
|
+
show: false,
|
|
891
|
+
autoHideMenuBar: true,
|
|
892
|
+
title: APP_NAME,
|
|
891
893
|
icon: existsSync(iconPath) ? iconPath : nativeImage.createFromDataURL(FALLBACK_ICON_DATA_URL),
|
|
892
894
|
webPreferences: {
|
|
893
895
|
preload: appResource('electron', 'preload.cjs'),
|