From 02b0478ef7919969a6346ea4794eb6f6fddc73f0 Mon Sep 17 00:00:00 2001 From: Ryan Sturmer Date: Tue, 4 Sep 2018 16:15:59 -0400 Subject: [PATCH] Implicit (temporary) consent in the case of unspecified beacon --- beacon.js | 2 +- updater.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();