blob: 8a8edab46bade91b2b660213f5dc122a865c3643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From fead13c466b3f5fde6f6fdd62c77b22a070e8d97 Mon Sep 17 00:00:00 2001
From: josselinonduty <contact@josselinonduty.fr>
Date: Tue, 29 Jul 2025 10:46:31 +0200
Subject: [PATCH] feat(patch): disable notifications (w/ cli arg or env var)
---
diff --git a/build/main.js b/build/main.js
index 60c6569..2121333 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3035,6 +3035,9 @@
(process.argv.some((arg) => arg === "--disable-animations") ||
"yes" === process.env.DZ_DISABLE_ANIMATIONS) &&
"--disable-animations",
+ (process.argv.some((arg) => arg === "--disable-notifications") ||
+ "yes" === process.env.DZ_DISABLE_NOTIFICATIONS) &&
+ "--disable-notifications",
].filter(Boolean),
},
windowOptions = {
diff --git a/build/preload.js b/build/preload.js
index 37257a0..b58c23a 100644
--- a/build/preload.js
+++ b/build/preload.js
@@ -546,6 +546,8 @@
document
.getElementsByTagName("body")[0]
.classList.add("disable-animations");
+ if (process.argv.some((arg) => arg === "--disable-notifications"))
+ delete window.Notification;
}));
})(),
(module.exports = __webpack_exports__));
|