mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Patch fix
This commit is contained in:
parent
dd6fb4d140
commit
e09f37ccd5
@ -35,15 +35,15 @@ diff --git a/main/lib/createWindow.js b/main/lib/createWindow.js
|
||||
diff --git a/main/lib/preload.js b/main/lib/preload.js
|
||||
--- a/main/lib/preload.js
|
||||
+++ b/main/lib/preload.js
|
||||
@@ -10,10 +10,12 @@ const getInitialTheme_js_1 = require("./getInitialTheme.js");
|
||||
const theme_js_1 = require("../constants/theme.js");
|
||||
@@ -7,10 +7,12 @@ const deviceInfo_js_1 = require("./deviceInfo.js");
|
||||
const theme_js_1 = require("../types/theme.js");
|
||||
const hostnamePatterns_js_1 = require("../constants/hostnamePatterns.js");
|
||||
const getDeviceInfo_js_1 = require("./getDeviceInfo.js");
|
||||
const deviceInfo = (0, deviceInfo_js_1.getDeviceInfo)();
|
||||
+const customTitleBar = process.env.CUSTOM_TITLE_BAR && process.env.CUSTOM_TITLE_BAR > 0;
|
||||
electron_1.contextBridge.exposeInMainWorld('VERSION', String(config_js_1.config.buildInfo.VERSION));
|
||||
electron_1.contextBridge.exposeInMainWorld('BRANCH', String(config_js_1.config.buildInfo.BRANCH));
|
||||
electron_1.contextBridge.exposeInMainWorld('PLATFORM', node_os_1.default.platform());
|
||||
electron_1.contextBridge.exposeInMainWorld('DEVICE_INFO', (0, getDeviceInfo_js_1.getDeviceInfo)());
|
||||
electron_1.contextBridge.exposeInMainWorld('PLATFORM', deviceInfo.os);
|
||||
electron_1.contextBridge.exposeInMainWorld('DEVICE_INFO', deviceInfo);
|
||||
+electron_1.contextBridge.exposeInMainWorld('CUSTOM_TITLE_BAR', customTitleBar);
|
||||
electron_1.contextBridge.exposeInMainWorld('desktopEvents', {
|
||||
send(name, ...args) {
|
||||
|
Loading…
Reference in New Issue
Block a user