mirror of
				https://github.com/beestat/app.git
				synced 2025-11-03 18:37:01 -05:00 
			
		
		
		
	Temporarily disabled Sentry
Trying to see if it's affecting performance.
This commit is contained in:
		
							parent
							
								
									960e2e491b
								
							
						
					
					
						commit
						67cb3e421e
					
				@ -62,7 +62,7 @@ window.addEventListener('resize', rocket.throttle(100, function() {
 | 
			
		||||
var $ = rocket.extend(rocket.$, rocket);
 | 
			
		||||
$.ready(function() {
 | 
			
		||||
  moment.suppressDeprecationWarnings = true;
 | 
			
		||||
  if (window.environment === 'live') {
 | 
			
		||||
  /*if (window.environment === 'live') {
 | 
			
		||||
    Sentry.init({
 | 
			
		||||
      'release': window.commit,
 | 
			
		||||
      'dsn': 'https://af9fd2cf6cda49dcb93dcaf02fe39fc6@sentry.io/3736982',
 | 
			
		||||
@ -76,6 +76,6 @@ $.ready(function() {
 | 
			
		||||
      'replaysSessionSampleRate': 0.01, // 1%
 | 
			
		||||
      'replaysOnErrorSampleRate': 1.0, // 100%
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  }*/
 | 
			
		||||
  (new beestat.layer.load()).render();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@ -11,7 +11,7 @@ echo '<script>window.commit = \'' . $setting->get('commit') . '\';</script>';
 | 
			
		||||
 | 
			
		||||
if($setting->get('environment') === 'dev' || $setting->get('environment') === 'dev_live') {
 | 
			
		||||
  // External libraries
 | 
			
		||||
  echo '<script src="/js/lib/sentry/sentry.js"></script>' . PHP_EOL;
 | 
			
		||||
  // echo '<script src="/js/lib/sentry/sentry.js"></script>' . PHP_EOL;
 | 
			
		||||
  echo '<script src="/js/lib/rocket/rocket.js"></script>' . PHP_EOL;
 | 
			
		||||
  echo '<script src="/js/lib/moment/moment.js"></script>' . PHP_EOL;
 | 
			
		||||
  echo '<script src="/js/lib/highcharts/highcharts.js"></script>' . PHP_EOL;
 | 
			
		||||
 | 
			
		||||
@ -137,11 +137,11 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
 | 
			
		||||
  api.set_callback(function(response) {
 | 
			
		||||
    beestat.cache.set('user', response.user);
 | 
			
		||||
 | 
			
		||||
    Sentry.configureScope(function(scope) {
 | 
			
		||||
    /*Sentry.configureScope(function(scope) {
 | 
			
		||||
      scope.setUser({
 | 
			
		||||
        'id': beestat.user.get().user_id
 | 
			
		||||
      });
 | 
			
		||||
    });
 | 
			
		||||
    });*/
 | 
			
		||||
 | 
			
		||||
    beestat.cache.set('thermostat', response.thermostat);
 | 
			
		||||
    beestat.cache.set('sensor', response.sensor);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user