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:
parent
c2601f242f
commit
17ec6f34e0
14
js/app.js
14
js/app.js
@ -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();
|
||||||
|
|
||||||
|
1
js/third_party/ga.js
vendored
1
js/third_party/ga.js
vendored
@ -10,7 +10,6 @@ class GoogleAnalyticsHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onRouteDidChange() {
|
onRouteDidChange() {
|
||||||
console.log(window.location.href);
|
|
||||||
window.ga('send', 'pageview');
|
window.ga('send', 'pageview');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
js/third_party/intercom.js
vendored
2
js/third_party/intercom.js
vendored
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user