chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
36
app/index.js
36
app/index.js
@@ -1,22 +1,22 @@
|
||||
// @flow
|
||||
import * as React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import { Provider } from 'mobx-react';
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
import stores from 'stores';
|
||||
import * as React from "react";
|
||||
import { render } from "react-dom";
|
||||
import { Provider } from "mobx-react";
|
||||
import { BrowserRouter as Router } from "react-router-dom";
|
||||
import stores from "stores";
|
||||
|
||||
import ErrorBoundary from 'components/ErrorBoundary';
|
||||
import ScrollToTop from 'components/ScrollToTop';
|
||||
import Toasts from 'components/Toasts';
|
||||
import Theme from 'components/Theme';
|
||||
import Routes from './routes';
|
||||
import ErrorBoundary from "components/ErrorBoundary";
|
||||
import ScrollToTop from "components/ScrollToTop";
|
||||
import Toasts from "components/Toasts";
|
||||
import Theme from "components/Theme";
|
||||
import Routes from "./routes";
|
||||
|
||||
let DevTools;
|
||||
if (__DEV__) {
|
||||
DevTools = require('mobx-react-devtools').default; // eslint-disable-line global-require
|
||||
DevTools = require("mobx-react-devtools").default; // eslint-disable-line global-require
|
||||
}
|
||||
|
||||
const element = document.getElementById('root');
|
||||
const element = document.getElementById("root");
|
||||
|
||||
if (element) {
|
||||
render(
|
||||
@@ -41,17 +41,17 @@ if (element) {
|
||||
);
|
||||
}
|
||||
|
||||
window.addEventListener('load', async () => {
|
||||
window.addEventListener("load", async () => {
|
||||
// installation does not use Google Analytics, or tracking is blocked on client
|
||||
// no point loading the rest of the analytics bundles
|
||||
if (!process.env.GOOGLE_ANALYTICS_ID || !window.ga) return;
|
||||
|
||||
// https://github.com/googleanalytics/autotrack/issues/137#issuecomment-305890099
|
||||
await import('autotrack/autotrack.js');
|
||||
await import("autotrack/autotrack.js");
|
||||
|
||||
window.ga('require', 'outboundLinkTracker');
|
||||
window.ga('require', 'urlChangeTracker');
|
||||
window.ga('require', 'eventTracker', {
|
||||
attributePrefix: 'data-',
|
||||
window.ga("require", "outboundLinkTracker");
|
||||
window.ga("require", "urlChangeTracker");
|
||||
window.ga("require", "eventTracker", {
|
||||
attributePrefix: "data-",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user