Skip to content

Commit

Permalink
Implicit (temporary) consent in the case of unspecified beacon
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansturmer committed Sep 4, 2018
1 parent 3213cdb commit 02b0478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 02b0478

Please sign in to comment.