mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-04-02 23:33:45 +03:00
12 lines
731 B
Diff
12 lines
731 B
Diff
diff --git a/main/lib/preload.js b/main/lib/preload.js
|
|
--- a/main/lib/preload.js
|
|
+++ b/main/lib/preload.js
|
|
@@ -12,2 +12,3 @@ const deviceInfo_js_1 = require("./deviceInfo.js");
|
|
const trayEnabled = process.env.TRAY_ENABLED && process.env.TRAY_ENABLED > 0;
|
|
+const vibeAnimationMaxFps = process.env.VIBE_ANIMATION_MAX_FPS ?? 25;
|
|
electron_1.contextBridge.exposeInMainWorld('VERSION', String(config_js_1.config.buildInfo.VERSION));
|
|
@@ -19,2 +20,3 @@ const deviceInfo_js_1 = require("./deviceInfo.js");
|
|
electron_1.contextBridge.exposeInMainWorld('IS_TRAY_ENABLED', trayEnabled);
|
|
+electron_1.contextBridge.exposeInMainWorld('VIBE_ANIMATION_MAX_FPS', vibeAnimationMaxFps);
|
|
electron_1.contextBridge.exposeInMainWorld('desktopEvents', {
|