1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00

Fix code after review

This commit is contained in:
vrde 2015-07-27 18:21:20 +02:00
parent c2601f242f
commit 17ec6f34e0
3 changed files with 11 additions and 6 deletions

View File

@ -5,7 +5,9 @@ require('babel/polyfill');
import React from 'react'; import React from 'react';
import Router from 'react-router'; import Router from 'react-router';
/* eslint-disable */
import fetch from 'isomorphic-fetch'; import fetch from 'isomorphic-fetch';
/* eslint-enable */
import ApiUrls from './constants/api_urls'; import ApiUrls from './constants/api_urls';
import { updateApiUrls } from './constants/api_urls'; import { updateApiUrls } from './constants/api_urls';
@ -17,10 +19,14 @@ import { getSubdomainSettings } from './utils/constants_utils';
import { initLogging } from './utils/error_utils'; import { initLogging } from './utils/error_utils';
import EventActions from './actions/event_actions'; import EventActions from './actions/event_actions';
// require('./third_party/debug');
require('./third_party/ga'); /* eslint-disable */
require('./third_party/raven'); // You can comment out the modules you don't need
require('./third_party/intercom'); // import DebugHandler from './third_party/debug';
import GoogleAnalyticsHandler from './third_party/ga';
import RavenHandler from './third_party/raven';
import IntercomHandler from './third_party/intercom';
/* eslint-enable */
initLogging(); initLogging();

View File

@ -10,7 +10,6 @@ class GoogleAnalyticsHandler {
} }
onRouteDidChange() { onRouteDidChange() {
console.log(window.location.href);
window.ga('send', 'pageview'); window.ga('send', 'pageview');
} }

View File

@ -16,7 +16,7 @@ class IntercomHandler {
} }
/* eslint-disable */ /* eslint-disable */
window.Intercom('boot', { Intercom('boot', {
/* eslint-enable */ /* eslint-enable */
app_id: 'oboxh5w1', app_id: 'oboxh5w1',
email: profile.email, email: profile.email,