From 7817f8e1f96e5d78fe93a9881610ff3efdafe5ac Mon Sep 17 00:00:00 2001 From: mdartic Date: Sat, 18 Nov 2017 01:14:39 +0100 Subject: [PATCH] Better opbeat initialization #56 --- modules/der-reader/src/der-reader.js | 10 +--------- modules/der-reader/src/index.js | 8 +++++++- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/der-reader/src/der-reader.js b/modules/der-reader/src/der-reader.js index 081e85d..b644992 100644 --- a/modules/der-reader/src/der-reader.js +++ b/modules/der-reader/src/der-reader.js @@ -1,19 +1,11 @@ require('!style!css!./der-reader.css') -import initOpbeat from 'opbeat-react'; -import React from 'react'; - -initOpbeat({ - orgId: '48eaafd23a8a462184cf7903765ea4a3', - appId: 'b73624b852' -}); - import Menu from './routes/Menu/Menu.js' import Filters from './routes/Filters/Filters.js' import SelectFile from './routes/Menu/SelectFile/SelectFile' import CalibrateMenu from './routes/Menu/Calibrate/CalibrateMenu' import FastClick from 'fastclick' -// import React from 'react' +import React from 'react' import ReactDOM from 'react-dom' import { combineReducers } from 'redux' diff --git a/modules/der-reader/src/index.js b/modules/der-reader/src/index.js index 1f541c6..6bd47c4 100644 --- a/modules/der-reader/src/index.js +++ b/modules/der-reader/src/index.js @@ -1,4 +1,10 @@ -'use strict' +import initOpbeat from 'opbeat-react'; +import React from 'react'; + +initOpbeat({ + orgId: '48eaafd23a8a462184cf7903765ea4a3', + appId: 'b73624b852' +}); var webspeechapi, vibrateWebApi, DerReader