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

Merge pull request from alldevic/off-upd-tlmt

This commit is contained in:
Andrey Onischenko 2025-02-17 13:39:59 +03:00 committed by GitHub
commit fb16434d69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,23 @@
diff --git a/main/index.js b/main/index.js
--- a/main/index.js
+++ b/main/index.js
@@ -34,2 +34,7 @@ exports.config = {
const window = await (0, createWindow_js_1.createWindow)();
+ const { session } = require("electron");
+
+ session.defaultSession.webRequest.onBeforeRequest({ urls: ["https://yandex.ru/clck/*", "https://mc.yandex.ru/*"] }, (details, callback) => {
+ callback({ cancel: true });
+ });
const isPlatformWindows = deviceInfo_js_1.devicePlatform === platform_js_1.Platform.WINDOWS;
diff --git a/main/config.js b/main/config.js
--- a/main/config.js
+++ b/main/config.js
@@ -11,4 +11,4 @@ exports.config = {
enableWebSecurity: true,
- enableAutoUpdate: true,
- enableUpdateByProbability: true,
+ enableAutoUpdate: false,
+ enableUpdateByProbability: false,
bypassCSP: false,