Skip to content

Commit 496d3a8

Browse files
committed
disable telemetry
1 parent 891d185 commit 496d3a8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

DocViewerWeb/ApplicationDelegateShared.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,16 @@ JSClass("ApplicationDelegateShared", JSObject, {
107107
},
108108

109109
setupTelemetry: function(application){
110-
this.telemetry = TelemetryClient.initWithKey(application.environment.get("TELEMETRY_CLIENT_KEY"));
110+
let key = application.environment.get("TELEMETRY_CLIENT_KEY");
111+
if (key){
112+
this.telemetry = TelemetryClient.initWithKey(key);
113+
}
111114
},
112115

113116
applicationDidCrash: function(application, error, logs){
114-
this.telemetry.crash(error, logs);
117+
if (this.telemetry){
118+
this.telemetry.crash(error, logs);
119+
}
115120
},
116121

117122
});

DocViewerWeb/production.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
DOCVIEWERWEB_ENV_NAME=production
55
DOCVIEWERWEB_ROLLBAR_CLIENT_TOKEN=d6dbf9f3770d41968f7f5f7b3839e511
6-
TELEMETRY_CLIENT_KEY=pkey_5695c6b18031f5de7153e3c1cc408207b906841a
6+
# TELEMETRY_CLIENT_KEY=pkey_5695c6b18031f5de7153e3c1cc408207b906841a

0 commit comments

Comments
 (0)