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

Commit

Permalink
Fix #3996, disable uploads for ESR
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhirsch committed Jan 24, 2018
1 parent a0c6626 commit f99e449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ function handleMessage(msg, sender, sendReply) {
let telemetryEnabled = getBoolPref(TELEMETRY_ENABLED_PREF);
sendReply({type: "success", value: telemetryEnabled});
} else if (msg.funcName === "isUploadDisabled") {
let isESR = AppConstants.MOZ_UPDATE_CHANNEL === 'esr';
let uploadDisabled = getBoolPref(UPLOAD_DISABLED_PREF);
sendReply({type: "success", value: uploadDisabled});
sendReply({type: "success", value: uploadDisabled || isESR});
} else if (msg.funcName === "getOldDeviceInfo") {
let oldDeviceInfo = prefs.prefHasUserValue(OLD_ADDON_PREF_NAME) && prefs.getCharPref(OLD_ADDON_PREF_NAME);
sendReply({type: "success", value: oldDeviceInfo || null});
Expand Down

0 comments on commit f99e449

Please sign in to comment.