Skip to content

Commit ecb36fc

Browse files
committed
fix: don't send analytics for debug builds
this should reduce any spam/inaccurate data, and if I want to send them for testing purposes I can just disable this locally
1 parent a8d63d0 commit ecb36fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MainView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function MainView() {
4545
| 'none'
4646
| undefined;
4747

48-
if (analyticsSetting) {
48+
if (analyticsSetting && !__DEV__) {
4949
analyticsSetting !== 'none' && sendAnalytics(analyticsSetting);
5050
} else {
5151
app.openAnalyticsMenu(true, true);

0 commit comments

Comments
 (0)