0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Patches update

This commit is contained in:
Andrey Onishchenko 2024-06-20 15:08:10 +03:00
parent 34e875f43d
commit 10a10e060f
3 changed files with 14 additions and 14 deletions

View File

@ -1,10 +1,10 @@
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
--- a/package.json --- a/package.json
+++ b/package.json +++ b/package.json
@@ -42,5 +42,6 @@ @@ -51,5 +51,6 @@
"COPYRIGHT": "Яндекс Музыка", "kk",
"TRADEMARK": "Яндекс Музыка", "az"
"DEEPLINK_PROTOCOL": "yandexmusic" ]
- } - }
+ }, + },
+ "license": "UNLICENSED" + "license": "UNLICENSED"

View File

@ -1,9 +1,9 @@
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
--- a/package.json --- a/package.json
+++ b/package.json +++ b/package.json
@@ -43,5 +43,9 @@ @@ -52,5 +52,9 @@
"TRADEMARK": "Яндекс Музыка", "az"
"DEEPLINK_PROTOCOL": "yandexmusic" ]
}, },
- "license": "UNLICENSED" - "license": "UNLICENSED"
+ "license": "UNLICENSED", + "license": "UNLICENSED",

View File

@ -28,16 +28,16 @@ diff --git a/main/lib/createTray.js b/main/lib/createTray.js
diff --git a/main/index.js b/main/index.js diff --git a/main/index.js b/main/index.js
--- a/main/index.js --- a/main/index.js
+++ b/main/index.js +++ b/main/index.js
@@ -33,6 +33,9 @@ const handleWindowSessionEvents_js_1 = require("./lib/handlers/handleWindowSessi @@ -42,6 +42,9 @@ Logger_js_1.Logger.setupLogger();
(0, safeRedirects_js_1.safeRedirects)(window); (0, handleDeeplink_js_1.handleDeeplink)(window);
(0, handleWindowLifecycleEvents_js_1.handleWindowLifecycleEvents)(window); (0, handleMetrikaRequests_js_1.handleMetrikaRequests)(window);
(0, handleWindowSessionEvents_js_1.handleWindowSessionEvents)(window); (0, handleCrash_js_1.handleCrash)();
+ const {createTray} = require('./lib/createTray.js'); + const {createTray} = require('./lib/createTray.js');
+ const trayEnabled = process.env.TRAY_ENABLED && process.env.TRAY_ENABLED > 0; + const trayEnabled = process.env.TRAY_ENABLED && process.env.TRAY_ENABLED > 0;
+ if (trayEnabled){createTray(window);} + if (trayEnabled){createTray(window);}
(0, events_js_1.handleApplicationEvents)(window); await (0, loadURL_js_1.loadURL)(window);
(0, handleExternalLink_js_1.handleExternalLink)(window); if (node_os_1.default.platform() === platform_js_1.Platform.WINDOWS) {
(0, logger_js_1.logWindowLifecycle)(window); (0, customTitleBar_js_1.createCustomTitleBar)(window);
diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handlers/handleWindowLifecycleEvents.js diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handlers/handleWindowLifecycleEvents.js