0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-04-04 08:13:43 +03:00
yandex-music-linux/patches/0004-Vibe-animation-max-FPS.patch
2025-03-07 08:01:06 +07:00

12 lines
764 B
Diff

diff --git a/main/lib/preload.js b/main/lib/preload.js
--- a/main/lib/preload.js
+++ b/main/lib/preload.js
@@ -13,2 +13,3 @@ const deviceInfo_js_1 = require("./deviceInfo.js");
const alwaysLeaveToTray = process.env.ALWAYS_LEAVE_TO_TRAY && process.env.ALWAYS_LEAVE_TO_TRAY > 0;
+const vibeAnimationMaxFps = process.env.VIBE_ANIMATION_MAX_FPS ?? 25;
electron_1.contextBridge.exposeInMainWorld('VERSION', String(config_js_1.config.buildInfo.VERSION));
@@ -21,2 +22,3 @@ const deviceInfo_js_1 = require("./deviceInfo.js");
electron_1.contextBridge.exposeInMainWorld('ALWAYS_LEAVE_TO_TRAY', alwaysLeaveToTray);
+electron_1.contextBridge.exposeInMainWorld('VIBE_ANIMATION_MAX_FPS', vibeAnimationMaxFps);
electron_1.contextBridge.exposeInMainWorld('desktopEvents', {