Skip to content

Instantly share code, notes, and snippets.

@jonasmalacofilho
Created January 23, 2024 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonasmalacofilho/28d8eb1d7d165bf4eeb9f6e9709941cf to your computer and use it in GitHub Desktop.
Save jonasmalacofilho/28d8eb1d7d165bf4eeb9f6e9709941cf to your computer and use it in GitHub Desktop.
Restore getSentryTags() fix from fix-isDev-usage.patch
diff --git a/fix-isDev-usage.patch b/fix-isDev-usage.patch
index cd0e4a70f5dd..972d3cca4fe0 100644
--- a/fix-isDev-usage.patch
+++ b/fix-isDev-usage.patch
@@ -24,3 +24,15 @@ index e7a2cc5..2e1ebac 100644
? "silly"
: "warn"),
(external_electron_log_default().transports.sentry = function (msg) {
+diff --git a/build/preload.js a/build/preload.js
+--- a/build/preload.js 2024-01-23 12:38:54.505566610 -0300
++++ b/build/preload.js 2024-01-23 12:40:47.177191379 -0300
+@@ -490,7 +490,7 @@
+ }
+ getSentryTags() {
+ return {
+- environment: isDev ? "development" : "production",
++ environment: isDev() ? "development" : "production",
+ os: `${external_os_default().type()} ${external_os_default().release()}`,
+ "os.name": external_os_default().type(),
+ arch: process.arch,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment