From 49d24b939f1f9c723077de06b0170d1bdb2d52ca Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 1 Jun 2015 01:12:02 +0200 Subject: [PATCH] Do not send stats if developer_mode is enabled. --- app/assets/javascripts/app/lib/app_init/track.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_init/track.js.coffee b/app/assets/javascripts/app/lib/app_init/track.js.coffee index 4ab84f716..b1f2dee0e 100644 --- a/app/assets/javascripts/app/lib/app_init/track.js.coffee +++ b/app/assets/javascripts/app/lib/app_init/track.js.coffee @@ -102,7 +102,7 @@ class _trackSingleton ) log: ( facility, level, args ) -> - return if !App.Config.get('developer_mode') + return if App.Config.get('developer_mode') return if !App.Config.get('ui_send_client_stats') info = time: Math.round( new Date().getTime() / 1000 ) @@ -113,7 +113,7 @@ class _trackSingleton @data.push info send: (async = true) => - return if !App.Config.get('developer_mode') + return if App.Config.get('developer_mode') return if !App.Config.get('ui_send_client_stats') return if _.isEmpty @data newData = _.clone( @data )