()
| 59 | // Set FORCE_ANALYTICS=true to test analytics in development |
| 60 | // Use a function to check lazily after app is ready |
| 61 | function isDev(): boolean { |
| 62 | try { |
| 63 | return !app.isPackaged && process.env.FORCE_ANALYTICS !== "true" |
| 64 | } catch { |
| 65 | // App not ready yet, assume dev mode |
| 66 | return process.env.FORCE_ANALYTICS !== "true" |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Get common properties for all events |
no outgoing calls
no test coverage detected