diff --git a/beacon.js b/beacon.js index f213cd6..c270cf9 100644 --- a/beacon.js +++ b/beacon.js @@ -38,7 +38,7 @@ Beacon.prototype.start = function(reason) { // Function called at intervals to report to the beacon Beacon.prototype.run = function(reason) { - if (this.consent_for_beacon === "true"){ + if (this.consent_for_beacon != "false") { this.report(reason) .catch(function(err) { log.warn('Could not send a beacon message: ' + err); diff --git a/updater.js b/updater.js index 2ed06c8..79bed67 100644 --- a/updater.js +++ b/updater.js @@ -781,7 +781,7 @@ Updater.prototype.start = function(callback) { break; default: log.info("Beacon consent is unspecified"); - this.beacon.set("consent_for_beacon", "false"); + this.beacon.set("consent_for_beacon", "true"); break; } this.beacon.start();