mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +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 Router from 'react-router';
|
||||
|
||||
/* eslint-disable */
|
||||
import fetch from 'isomorphic-fetch';
|
||||
/* eslint-enable */
|
||||
|
||||
import ApiUrls 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 EventActions from './actions/event_actions';
|
||||
// require('./third_party/debug');
|
||||
require('./third_party/ga');
|
||||
require('./third_party/raven');
|
||||
require('./third_party/intercom');
|
||||
|
||||
/* eslint-disable */
|
||||
// You can comment out the modules you don't need
|
||||
// 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();
|
||||
|
||||
|
1
js/third_party/ga.js
vendored
1
js/third_party/ga.js
vendored
@ -10,7 +10,6 @@ class GoogleAnalyticsHandler {
|
||||
}
|
||||
|
||||
onRouteDidChange() {
|
||||
console.log(window.location.href);
|
||||
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 */
|
||||
window.Intercom('boot', {
|
||||
Intercom('boot', {
|
||||
/* eslint-enable */
|
||||
app_id: 'oboxh5w1',
|
||||
email: profile.email,
|
||||
|
Loading…
Reference in New Issue
Block a user