Skip to content

Commit

Permalink
Add userTracking toggle
Browse files Browse the repository at this point in the history
Add enableUserTracking boolean to app.js to easily turn tracking on and
off.
  • Loading branch information
simofacc committed Mar 14, 2014
1 parent 1582403 commit 6aba8e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ var
tmpFolder = path.join(os.tmpDir(), 'Popcorn-Time'),

// i18n module (translations)
i18n = require("i18n");
i18n = require("i18n"),

// Enable User tracking
enableUserTracking = true;

isWin = (process.platform === 'win32');
isLinux = (process.platform === 'linux');
Expand Down
2 changes: 2 additions & 0 deletions js/tracking.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Tracking
var getTrackingId = function(){
//Check if user tracking is enabled
if( !enableUserTracking ) return null;

var clientId = Settings.get('trackingId');

Expand Down

0 comments on commit 6aba8e5

Please sign in to comment.