mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-04-02 15:23:43 +03:00
Merge pull request #155 from alldevic/off-upd-tlmt
This commit is contained in:
commit
fb16434d69
23
patches/0005-Disable-autoupdates-and-block-telemetry.patch
Normal file
23
patches/0005-Disable-autoupdates-and-block-telemetry.patch
Normal 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,
|
Loading…
Reference in New Issue
Block a user