mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-04-02 15:23:43 +03:00
24 lines
838 B
Diff
24 lines
838 B
Diff
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,
|