Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhirsch committed Nov 1, 2017
1 parent 80ecdd0 commit e06257d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions addon/bootstrap.js
Expand Up @@ -229,15 +229,9 @@ function handleMessage(msg, sender, sendReply) {
let historyEnabled = getBoolPref(HISTORY_ENABLED_PREF);
sendReply({type: "success", value: historyEnabled});
} else if (msg.funcName === "incrementDownloadCount") {
let telemetryEnabled = getBoolPref(TELEMETRY_ENABLED_PREF);
if (telemetryEnabled) {
Services.telemetry.scalarAdd('screenshots.download', 1);
}
Services.telemetry.scalarAdd('screenshots.download', 1);
} else if (msg.funcName === "incrementUploadCount") {
let telemetryEnabled = getBoolPref(TELEMETRY_ENABLED_PREF);
if (telemetryEnabled) {
Services.telemetry.scalarAdd('screenshots.upload', 1);
}
Services.telemetry.scalarAdd('screenshots.upload', 1);
}
}

Expand Down

0 comments on commit e06257d

Please sign in to comment.