0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-04-04 00:03:43 +03:00

Try to fix patches conflict

This commit is contained in:
TheKing-OfTime 2025-01-27 09:36:26 +03:00
parent 605c90abf7
commit db6006bbf1

View File

@ -1,12 +1,12 @@
diff --git a/main/lib/preload.js b/main/lib/preload.js diff --git a/main/lib/preload.js b/main/lib/preload.js
--- a/main/lib/preload.js --- a/main/lib/preload.js
+++ b/main/lib/preload.js +++ b/main/lib/preload.js
@@ -7,6 +7,8 @@ const deviceInfo_js_1 = require("./deviceInfo.js"); @@ -25,6 +25,8 @@ electron_1.contextBridge.exposeInMainWorld('desktopEvents', {
const theme_js_1 = require("../types/theme.js"); return electron_1.ipcRenderer.invoke(name, ...args);
const hostnamePatterns_js_1 = require("../constants/hostnamePatterns.js"); }
const deviceInfo = (0, deviceInfo_js_1.getDeviceInfo)(); });
+const devTools = process.env.DEV_TOOLS && process.env.DEV_TOOLS > 0; +const devTools = process.env.DEV_TOOLS && process.env.DEV_TOOLS > 0;
+electron_1.contextBridge.exposeInMainWorld('IS_DEVTOOLS_ENABLED', devTools); +electron_1.contextBridge.exposeInMainWorld('IS_DEVTOOLS_ENABLED', devTools);
electron_1.contextBridge.exposeInMainWorld('VERSION', String(config_js_1.config.buildInfo.VERSION)); window.document.addEventListener('DOMContentLoaded', () => {
electron_1.contextBridge.exposeInMainWorld('BRANCH', String(config_js_1.config.buildInfo.BRANCH)); const theme = (0, getInitialTheme_js_1.getInitialTheme)();
electron_1.contextBridge.exposeInMainWorld('PLATFORM', deviceInfo.os); if (hostnamePatterns_js_1.applicationHostnamePattern.test(window.location.hostname)) {