diff --git a/README.md b/README.md index 528c724..41f4588 100644 --- a/README.md +++ b/README.md @@ -78,10 +78,9 @@ The development environment assumes you have the following prerequisites: - If iteration on UI changes run the project with `yarn watch` which will monitor the JavaScript project and rebuild when you make code changes and then `ensure new-phone-who-dis` after making your change - Avoid commiting `index.html` as the development version overrides the production version - #### Important Note -By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically +By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically uploads relevant sesssion details and stack traces whenever an exception is thrown. We use these metrics to further -improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us). -Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone. \ No newline at end of file +improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us). +Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone. diff --git a/phone/src/index.tsx b/phone/src/index.tsx index 88d097e..8d5a152 100644 --- a/phone/src/index.tsx +++ b/phone/src/index.tsx @@ -1,28 +1,27 @@ -import "@babel/polyfill"; -import React from "react"; -import ReactDOM from "react-dom"; -import { HashRouter } from "react-router-dom"; -import { RecoilRoot } from "recoil"; -import * as Sentry from "@sentry/react"; -import { Integrations } from "@sentry/tracing"; -import "./main.css"; -import Phone from "./Phone"; -import TwitterNotification from "./apps/twitter/components/notification/TwitterNotification"; -import { BankNotification } from "./apps/bank/components/notification/BankNotification"; -import PhoneConfig from './config/default.json' +import '@babel/polyfill'; +import React from 'react'; +import ReactDOM from 'react-dom'; +import { HashRouter } from 'react-router-dom'; +import { RecoilRoot } from 'recoil'; +import * as Sentry from '@sentry/react'; +import { Integrations } from '@sentry/tracing'; +import './main.css'; +import Phone from './Phone'; +import TwitterNotification from './apps/twitter/components/notification/TwitterNotification'; +import { BankNotification } from './apps/bank/components/notification/BankNotification'; +import PhoneConfig from './config/default.json'; // Enable Sentry when config setting is true if (PhoneConfig.SentryErrorMetrics) { Sentry.init({ - dsn: "https://71fff4e8f11543fa8dbe7acd0f94fb5d@o478949.ingest.sentry.io/5581619", + dsn: + 'https://71fff4e8f11543fa8dbe7acd0f94fb5d@o478949.ingest.sentry.io/5581619', autoSessionTracking: true, - integrations: [ - new Integrations.BrowserTracing(), - ], + integrations: [new Integrations.BrowserTracing()], // We recommend adjusting this value in production, or using tracesSampler // for finer control tracesSampleRate: 1.0, - }) + }); } ReactDOM.render( @@ -33,5 +32,5 @@ ReactDOM.render( , - document.getElementById("root") + document.getElementById('root') );