Skip to content

Commit

Permalink
ajuste no log
Browse files Browse the repository at this point in the history
  • Loading branch information
andersao committed Oct 27, 2020
1 parent 263fae4 commit 8f00ec9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ function trackSmartlook(eventName, properties) {
}

class Logger {
constructor(options) {
this.debugMode = options.debug || window.LOKI_DEBUG_ENABLED || false;
this.enableTrack = options.enableTrack || window.LOKI_ENABLE_TRACK || false;
constructor(options = {}) {
this.options = options || {};
}

get debugMode() {
return this.options.debug || window.LOKI_DEBUG_ENABLED || false;
}

get enableTrack() {
return this.options.enableTrack || window.LOKI_ENABLE_TRACK || false;
}

track(eventName, properties) {
Expand Down

0 comments on commit 8f00ec9

Please sign in to comment.